delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/26/00:02:37

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: Thu, 25 Mar 2004 23:02:24 -0600
Message-Id: <200403260502.i2Q52OZs022291@tigris.pounder.sol.net>
X-Authentication-Warning: tigris.pounder.sol.net: rodmant set sender to nicebounce AT trodman DOT com using -f
From: nicebounce AT trodman DOT com (Tom Rodman)
Reply-to: nicebounce AT trodman DOT com (Tom Rodman)
X-note: setting From,Reply-to,X-sendmail-f to value of original "To" header makes sense for 1:1 emails, but "blows up" when "To" is a mailing list, in which case use: repl -fo repls
To: cygwin AT cygwin DOT com
X-note: 1G0!G/usr/sbin/sendmail -v -t -fnicebounce AT trodman DOT com # for less traceable mail
Subject: bash bad interpreter - a new twist!
In-reply-to: <016b01c41028$25f73230$9601a8c0@rbaker>
References: <BAY10-F5x0r5dHaNGDR00011ab5 AT hotmail DOT com>

>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.

Years back there was a cygwin tool called dbash.exe to support
what your trying to do. 

Try "man execve" on a UNIX box for more on the "#!" construct.

You just need to rethink your workaround..

I'm sure others can correct some of what I just said, but I believe
is mostly right ;->

--
Tom Rodman
pls run for my address:  
perl -e 'print unpack("u", "1\:6UP\,\$\!T\<F\]D\;6\%N\+F\-O\;0H\`");'


--
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/

- Raw text -


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