From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: bash and shell script problem 12 Jun 1998 04:39:20 -0700 Message-ID: <19980612134426.39303.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU> References: <199806101227 DOT OAA09726 DOT cygnus DOT gnu-win32 AT biff DOT mo DOT emw DOT ericsson DOT se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: "Christopher G. Faylor" Cc: gnu-win32 AT cygnus DOT com On 11-Jun-1998, Christopher G. Faylor wrote: > >I can't get shell scripts to run. > >In bash when I when I try to run shell-scripts I get: > > > >bash.exe: shell-script-name: No such file or directory > > > > > >When I run exe-files that are in the same directory as the script it works > >fine. > > Try doing a 'chmod a+x whatever' on the shell-script, just like UNIX. I don't think DOS's FAT file system has any "x" (execute) bits, so I don't think that will work. Instead, I think cygwin bases the execute permission on the file extension and the characters at the start of the file. For shell scripts, I think they need to start with "#!/bin/sh". -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".