B20.1 Can't execute shell scripts

M. R. Brown marcusb@csd.uwm.edu
Thu Sep 30 23:42:00 GMT 1999


On 1999年9月22日, Johan & Lydia Holtman wrote:
>> bash: file://d/unixtools/ii.sh: No such file or directory
>> My path is:
>> file://d/unixtools:/d/CYGNUS~1/CYGWIN~1/H-I586~1/bin:/c/WINNT/SYSTEM32
> etc,, including '.'.
>> Alternative II:
>> ./ii.sh
>> Gives the same error: No such file or directory.
>> ONLY by executing "bash ii.sh" or "sh ii.sh" the command is executed.
>
Did you make sure to insert a sh-bang ("#!/bin/sh" without the quotes) at
the top of your script? If you want to execute the command without
explicitly calling bash, this must be the _first_ line in your script.
Also, this convention will only work within the bash interpreter.
Marcus
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


More information about the Cygwin mailing list

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