delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/12/16:56:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <005701c1b410$1bfee2d0$6600a8c0@cherry>
From: "David Gluss" <dgluss AT marple-tech DOT com>
To: "Peter J. Acklam" <pjacklam AT online DOT no>
Cc: <cygwin AT cygwin DOT com>, "Peter J. Acklam" <pjacklam AT online DOT no>
References: <8z9y4kbm DOT fsf AT online DOT no> <001b01c1b3ff$46981950$6600a8c0 AT cherry> <r8nq319x DOT fsf AT online DOT no>
Subject: Re: /usr/bin/env - Incorrect parsing of #! line?
Date: Tue, 12 Feb 2002 13:27:20 -0800
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

I've only tried it with csh, tcsh, sh, and bash.  I put that first line in
with a colon
to put emacs into perl-mode.  It could probably be a # instead...as long as
it's
not #!.
----- Original Message -----
From: "Peter J. Acklam" <pjacklam AT online DOT no>
To: "David Gluss" <dgluss AT marple-tech DOT com>
Cc: <cygwin AT cygwin DOT com>; "Peter J. Acklam" <pjacklam AT online DOT no>
Sent: Tuesday, February 12, 2002 12:15 PM
Subject: Re: /usr/bin/env - Incorrect parsing of #! line?


> "David Gluss" <dgluss AT marple-tech DOT com> wrote:
>
> > I don't know if it's constructive to suggest an alternative trick,
rather
> > than trying to fix cygwin, in this forum.  However, this might work
> > for you:
> >>------------
> >>: # -*-Mode: perl;-*- use perl, wherever it is
> >>eval 'exec perl -wS $0 ${1+"$@"}'
> >>  if 0;
> >>#!/usr/local/bin/perl -w
> >>------------
>
> Thanks!  But I wonder, does the colon really belong there?  If so,
> what does it do?  Will this work under all common shells (sh, ksh,
> bash, zsh, csh, tcsh)?
>
> I hasitate to use a script with no shebang line, because I'm so
> used to it always being present in a script, but if I don't really
> need it, then I guess I can do without.
>
> Peter
>
> --
> People say I'm indifferent, but I don't care.
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019