Can't execute shell scripts.

Steve Kelem kelem@adaptivesilicon.com
Fri Jan 21 16:30:00 GMT 2000


It's usually because the 1st line of your script refers to a program
that isn't in the place you specified. The script works if you invoke
sh directly, because the 1st line of your script starts with a #
character, making it a comment.
> Pardon if this is a FAQ, but I couldn't find an
> answer in the FAQ.
>> I can't execute shell scripts.
>> bash-2.02$ foo.sh
> bash: foo.sh: No such file or directory
>> bash-2.02$ ./foo.sh
> bash: ./foo.sh: No such file or directory
>> Only by prepending sh does it work.
>> bash-2.02$ sh foo.sh
>> Why is this?
>> Craig
>> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /