delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/06/10/10:34:09

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: Mon, 10 Jun 2002 15:43:34 +0200
From: Mathias Gygax <mg AT trash DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: running shell scripts
Message-ID: <20020610134334.GC18671@chiba.dyndns.org>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <076e01c21059$1cfd6ee0$0200a8c0 AT weiss>
Mime-Version: 1.0
In-Reply-To: <076e01c21059$1cfd6ee0$0200a8c0@weiss>
User-Agent: Mutt/1.3.28i

On Mon, Jun 10, 2002 at 10:30:32AM +0200, Steven Weiss wrote:
> Hi

hi there,

> bash: ./work: No such file or directory
> 
> I am trying to running a shell script from an interactive bash
> session. I get the following error when running the shell script. It
> seems to work when I put the #! /cygwin/bin/bash inside the script.
> Surely the script should run with the execute permissions set as they
> are.

that's the way it works. the first shee-bang line topmost, is the
associated interpreter. it could be just anything, from a shell script
to awk program.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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