delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/26/09:36:47

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
X-Originating-IP: [199.172.208.201]
X-Originating-Email: [dpmallon AT hotmail DOT com]
X-Sender: dpmallon AT hotmail DOT com
From: "david mallon" <dpmallon AT hotmail DOT com>
To: nicebounce AT trodman DOT com, cygwin AT cygwin DOT com
Subject: RE: bash bad interpreter - a new twist!
Date: Fri, 26 Mar 2004 10:36:00 -0400
Mime-Version: 1.0
Message-ID: <BAY10-F33wjti0nfi3X000170a0@hotmail.com>
X-OriginalArrivalTime: 26 Mar 2004 14:36:00.0376 (UTC) FILETIME=[A87BA780:01C4133F]

Thanks Tom, I believe you are right.
I noticed yesterday that if the interpreter was a binary the problem went 
away, so I rewrote my script as a C program and everything is stable again.

-- dave

>From: nicebounce AT trodman DOT com (Tom Rodman)
>
> >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 ;->

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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