delorie.com/archives/browse.cgi | search |
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 |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Date: | Fri, 26 Mar 2004 01:15:38 -0500 |
From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: bash bad interpreter - a new twist! |
Message-ID: | <20040326061538.GB17139@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <BAY10-F5x0r5dHaNGDR00011ab5 AT hotmail DOT com> <200403260502 DOT i2Q52OZs022291 AT tigris DOT pounder DOT sol DOT net> |
Mime-Version: | 1.0 |
In-Reply-To: | <200403260502.i2Q52OZs022291@tigris.pounder.sol.net> |
User-Agent: | Mutt/1.4.1i |
On Thu, Mar 25, 2004 at 11:02:24PM -0600, Tom Rodman wrote: >>I'm using cygwin (september 2003 build) and ActiveState perl. To connect >>ActiveState into cygwin I use a proxy /usr/local/bin/perl bourne shell >>script that essentially transalates the paths (cygpath -w) and delegates to >>the ActiveState perl.exe binary. Given the following foobar script: >> >>#!/usr/local/bin/perl -w >>print "foobar world\n"; > >The "#!" construct must always refer to a binary, never to another >script (to avoid loops?). I ran into the same issue. The UNIX >standard is what I just said, but earlier (and current?) cygwin >versions (wrongly) sorta supported a script. In 1.3.20 it works about >2 out of 5 times or so - if you try a similar approach on a UNIX box it >will fail *every* time. Actually, no. It won't. The #! can refer to a script. Just tried it on Tru64 and on linux. The second script would have to be carefully constructed to recognize the 'print "foobar world\n"', though. cgf -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |