From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19449 invoked by alias); 12 Feb 2002 21:56:27 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Received: (qmail 19388 invoked from network); 12 Feb 2002 21:56:26 -0000 Received: from unknown (HELO granger.mail.mindspring.net) (207.69.200.148) by sources.redhat.com with SMTP; 12 Feb 2002 21:56:26 -0000 Received: from user-112vubf.biz.mindspring.com ([66.47.249.111] helo=cherry) by granger.mail.mindspring.net with smtp (Exim 3.33 #1) id 16akuU-00080u-00; Tue, 12 Feb 2002 16:56:22 -0500 Message-ID: <005701c1b410$1bfee2d0$6600a8c0@cherry> From: "David Gluss" To: "Peter J. Acklam" Cc: , "Peter J. Acklam" References: <8z9y4kbm.fsf@online.no> <001b01c1b3ff$46981950$6600a8c0@cherry> Subject: Re: /usr/bin/env - Incorrect parsing of #! line? Date: Tue, 12 Feb 2002 13:56:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 X-SW-Source: 2002-02/txt/msg00622.txt.bz2 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" To: "David Gluss" Cc: ; "Peter J. Acklam" Sent: Tuesday, February 12, 2002 12:15 PM Subject: Re: /usr/bin/env - Incorrect parsing of #! line? > "David Gluss" 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/