have you tried:

chmod a+x which gives all users the ability to execute the file... then
./poo should work with #!/bin/bash

Daniel

----- Original Message -----
From: "Cantanker" <[EMAIL PROTECTED]>
To: "Slug List" <[EMAIL PROTECTED]>
Sent: Thursday, March 16, 2000 10:10 PM
Subject: Re: [SLUG] path?


>
>    #!/bin/bash
>    echo "poo"
>
> Just been playing around.
>
> The script is called "poo.sh"
>
> and if I change the bang to #!/bin/sh it executes properly.
>
> If it stays #!/bin/bash and I rename the script "poo" then it exectues
> with no output.
>
> Hmm, actually, just tried it now and again:
>
> $ ./poo
> ./poo: ./poo: No such file or directory
> $ sh poo
> poo
>
> I'm using bash 1.14, and if I change the bang to bash2:
>
> $ ./poo
> [lots of syntax errors in rc's ... ]
> poo
>
> Perhaps this is something to do with bash 1.14 and sh compatibility?
>
> Anybody?
>
>
> : adrian :
>
> --
> SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
> To unsubscribe send email to [EMAIL PROTECTED] with
> unsubscribe in the text
>

--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text

Reply via email to