delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/29/12:02:56

Date: Tue, 29 Jul 1997 12:01:00 -0400 (EDT)
From: "Art S. Kagel" <kagel AT ns1 DOT bloomberg DOT com>
To: altailji AT nmt DOT edu
Cc: "djgpp AT delorie DOT com" <djgpp AT delorie DOT com>
Subject: Re: bash and scripts
In-Reply-To: <33DD93F6.C828A179@geocities.com>
Message-Id: <Pine.D-G.3.91.970729105515.15033F-100000@dg1>
Mime-Version: 1.0

On Mon, 28 Jul 1997, Wadhah Al-Tailji wrote:

> Thanks to all who replied to my question about long filenames.  Works
> beautifully :)
> 
> Now my next question.  How can I get bash to recognize scripts? (i.e.:
> run them when
> I type in the file name).  The script in question is executable and even
> shows three 'x's
> in ls -la.  The only way I can get it to run the script is type 'bash
> <scriptname>' from my
> DOS prompt.

I assume that the script is in your current directory and that the 
current directory is not explicitely mentioned in you PATH variable nor 
is there an entry of ":.:" in the PATH.  Remember that bash, unlike 
command.com, does not look in current directory unless it is in the PATH. 

Art S. Kagel, kagel AT bloomberg DOT com

- Raw text -


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