MAGIC: /usr/local/bin/bash: bad interpreter: Permission denied

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Tue Jan 29 08:31:14 PST 2008


>
> Check your script then, add:
> set -x
> near the top and see where it is complaining.
>
as i don't understand clearly where this set -x should be, i try 2 times:

1)

$ cat 1
#!/usr/local/bin/bash
echo abc
$ set -x
$ ./1
+ ./1
-bash: ./1: /usr/local/bin/bash: bad interpreter: Permission denied

2)

$ cat 1
#!/usr/local/bin/bash
set -x
echo abc
$ ./1
-bash: ./1: /usr/local/bin/bash: bad interpreter: Permission denied



More information about the freebsd-questions mailing list