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 |
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: | cygwin AT cygwin DOT com |
Subject: | bash bad interpreter - a new twist! |
Date: | Wed, 24 Mar 2004 22:50:41 -0400 |
Mime-Version: | 1.0 |
Message-ID: | <BAY10-F5x0r5dHaNGDR00011ab5@hotmail.com> |
X-OriginalArrivalTime: | 25 Mar 2004 02:50:42.0254 (UTC) FILETIME=[F680EEE0:01C41213] |
Hi I seem to have an intermittant problem with bash that I cannot work out---in which a script usually works fine, but sometimes in the same session attempting to run it gives the bash message: bad interpreter. 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"; When I invoke foobar from the bash command line, nine times out of ten it works. However, sometimes I get the bash error: bash: /cygdrive/f/home/evad/bin/foobar: /usr/local/bin/perl: bad interpreter: No such file or directory If I immediately type the command again it will work, but given enough time/iterations it will fail again. One thing to notice ... each time I create a new shell window it always fails the first time I issue the command. I'd appreciate some ideas as right now I'm quite puzzled. Thanks -- dave mallon _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail -- 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 |