delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/13/00:36:43

From: john DOT lewis AT syspac DOT com ("John A. Lewis")
Subject: Why won't #!/bin/sh scripts run on their own?
13 Apr 1997 00:36:43 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <335082D4.15B4.cygnus.gnu-win32@syspac.com>
Mime-Version: 1.0
X-Mailer: Mozilla 4.0b2 (Win95; I)
Original-To: gnu-win32 AT cygnus DOT com
X-Priority: 3 (Normal)
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Sorry for the bandwidth, but I can't find a reference to this problem
anywhere in the FAQ, docs, or ml archive.

My shell scripts which have the #! declaration on the first line show up
in 'ls -l' as executable, but when I try to invoke them, they wont run. 
Here is a session that demonstrates the problem:

/home> ls -l
total 1
-rwxr-xr-x   1 500      everyone       24 Apr 12 23:47 test.sh
/home> cat test.sh
#!/bin/sh
echo testing!
/home> /bin/sh test.sh
testing!
/home> sh test.sh
testing!
/home> test.sh
BASH.EXE: ./test.sh: No such file or directory
/home>

Anyone have any ideas how to fix this?

This is happening under Win95 at home.  I am also running the same
install under NT 4.0 at work, and this problem doesn't show up.

Thanks!

John A. Lewis (john DOT lewis AT syspac DOT com)
-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019