Mail Archives: cygwin/1998/06/12/04:39:20
On 11-Jun-1998, Christopher G. Faylor <cgf AT cygnus DOT com> 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 <fjh AT cs DOT mu DOT oz DOT au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | 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".
- Raw text -