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

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
From: "Dave Korn" <dk AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Problems with Indirect Interpretation (#!/bin/csh, #!/bin/tcsh, #!/bin/perl, etc...)
Date: Tue, 11 May 2004 18:10:13 +0100
MIME-Version: 1.0
In-Reply-To: <20040511170254.74870.qmail@web61005.mail.yahoo.com>
Message-ID: <NUTMEGRVUB4KgLhZszT0000007d@NUTMEG.CAM.ARTIMI.COM>
X-OriginalArrivalTime: 11 May 2004 17:10:13.0913 (UTC) FILETIME=[D305D890:01C4377A]

> -----Original Message-----
> From: cygwin-owner On Behalf Of Rocket Boy
> Sent: 11 May 2004 18:03

> 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
>  
> or
>  
> bash: test.sh: command not found

  Betcha don't have . in your $PATH.  Which is as it should be.  Try
executing the commands like this:

./test.pl
./test.sh

  There's something in the FAQ about this.  Ah, yes, here we go:

http://cygwin.com/faq/faq_4.html#SEC36

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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