Date: Thu, 12 Aug 2004 18:49:11 +0100
To: "Greg 'groggy' Lehey" <grog(a)lemis.com>
From: Robin Birch <robinb(a)ruffnready.co.uk>
Subject: Re: [pups] Installing begemot
I have a different problem as well. There is
something broken in the
configuration of this computer!!!!! If I execute a shell file by going
/bin/sh filename then it works ok but if I try running a shell script
with #!/bin/sh in the first line I get a bad permission error. This is
preventing me from running make scripts and all sorts of things. Any
ideas?
Yes. See the following transcript of a session. I created a small
script named "bad" which just does "date" to show that it worked.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
iota: try 1107$ ls -l bad
-rwxrwxr-x 1 cdl cdl 16 Aug 12 15:56 bad*
iota: try 1108$ /bin/sh bad
Thu Aug 12 15:57:37 PDT 2004
iota: try 1109$ ./bad
: bad interpreter: No such file or directory
iota: try 1110$ cat bad
#!/bin/sh
date
iota: try 1111$ od -c bad
0000000 # ! / b i n / s h \r \n d a t e \n
0000020
iota: try 1112$
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Note that there is a '\r' character at the end of the #! line.
carl
--
carl lowenstein marine physical lab u.c. san diego
clowenst(a)ucsd.edu