delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/11/13:12:57

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: Tue, 11 May 2004 18:10:31 +0100 (BST)
From: Vince Hoffman <jhary AT unsane DOT co DOT uk>
To: Rocket Boy <rktboy66 AT yahoo DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Problems with Indirect Interpretation (#!/bin/csh, #!/bin/tcsh, #!/bin/perl, etc...)
In-Reply-To: <20040511170254.74870.qmail@web61005.mail.yahoo.com>
Message-ID: <20040511180901.Y85243@unsane.co.uk>
References: <20040511170254 DOT 74870 DOT qmail AT web61005 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id i4BHCsOY022539


On Tue, 11 May 2004, Rocket Boy wrote:

> I have recently installed cygwin on my PC at home
> (Win-XP) and at work (Win-NT). I can't seem to get
> indirect interpretation (e.g. #!/bin/csh -f,
> #!/bin/tcsh -f, etc...) to work in either location. I
> have tried it in different shells: bash, tcsh, and sh.
> And, with different interpreters: #!/bin/bash,
> #!/bin/csh, #!/bin/tcsh, #!/bin/sh,
> #!/bin/perl ,etc... I have verified that the files are
> executable (777) and are in the directory that I am
> trying to execute them from. Regardless of the
> combination I get a message like:
>  
> bash: test.pl: command not found
>  
unless you have added it yourself . (your current directory) is not in
your path. try executing them as ./test.pl ./test.sh  etc

> or
>  
> bash: test.sh: command not found
>  
> etc...
>  
> It will work when I proceed the filename with the
> correct interpreter as in:
>  
> bash$ csh test.sh
>  
> but I'm sure it is just ignoring the 1st line in these
> cases.
>  
> This wouldn't be a problem because of this workaround
> except that I have a series of nested csh scripts and
> I can only get the outer one to run in this manner.
>  
> I will appreciate any advice.
>  
> Thanks
> Will
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Win a $20,000 Career Makeover at Yahoo! HotJobs
> http://hotjobs.sweepstakes.yahoo.com/careermakeover
>
> --
> 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/
>

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