www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/22/14:09:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Date: Wed, 22 Sep 1999 13:07:28 -0500 (CDT)
From: "M. R. Brown" <marcusb AT csd DOT uwm DOT edu>
To: Johan & Lydia Holtman <jholtman AT dds DOT nl>
cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: B20.1 Can't execute shell scripts
In-Reply-To: <01bf051c$1d7519e0$0101a8c0@desktop>
Message-ID: <Pine.OSF.3.96.990922130213.5539A-100000@alpha3.csd.uwm.edu>
MIME-Version: 1.0

On Wed, 22 Sep 1999, Johan & Lydia Holtman wrote:

> 
>    bash: file://d/unixtools/ii.sh: No such file or directory
> 
> My path is:
> 
>   file://d/unixtools:/d/CYGNUS~1/CYGWIN~1/H-I586~1/bin:/c/WINNT/SYSTEM32
> etc,, including '.'.
> 
> Alternative II:
> 
>   ./ii.sh
> 
> Gives the same error: No such file or directory.
> 
> ONLY by executing "bash ii.sh" or "sh ii.sh" the command is executed.
> 

Did you make sure to insert a sh-bang ("#!/bin/sh" without the quotes) at
the top of your script?  If you want to execute the command without
explicitly calling bash, this must be the _first_ line in your script.
Also, this convention will only work within the bash interpreter.

Marcus


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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