From: jan DOT linnell AT omgroup DOT com (Jan Linnell) Subject: Re: Running Bash Scripts? 10 Mar 1997 01:24:56 -0800 Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <3323C414.7A79.cygnus.gnu-win32@omgroup.com> References: <199703100349 DOT WAA28875 AT mailrelay1 DOT cc DOT columbia DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) Original-To: Paul McDermott Original-Cc: Gnu-Win32 Mailing List Original-Sender: owner-gnu-win32 AT cygnus DOT com Re: > > When I first run bash in a DOS box in Windows 95, and run a bash script, I > get a no such file of directory error. If I then run a sub-shell by typing > "bash", the script will run fine. (see the example below). Does anyone know > why? > > 1:# cd /windows/desktop/example > 2:/windows/desktop/example# ls -al test5 > -rw-r--r-- 1 500 everyone 13 Mar 09 19:08 test5 > 3:/windows/desktop/example# cat test5 > echo Hi > ls > 4:/windows/desktop/example# test5 > BASH.EXE: ./test5: No such file or directory > 5:/windows/desktop/example# bash > 1:/windows/desktop/example# test5 > Hi > test5 > 2:/windows/desktop/example# exit > exit > 6:/windows/desktop/example# > > ----- > Paul McDermott, Columbia Business School, New York > Tel: (212) 665-7121 > International: +1-212-665-7121 > Email: pm172 AT columbia DOT edu > - > For help on using this list, send a message to > "gnu-win32-request AT cygnus DOT com" with one line of text: "help". Where do you set the PATH environment variable? I had the same problem when I set it _only_ in .bashrc, for some reason it was needed to be set _before_ starting bash (as a "DOS environment variable"). /jan - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".