This question already has an answer here:
- #!/bin/bash - no such file or directory 6 answers
I'm sorry to ask this but I don't understand why I've got this error:
line 1: #!/bin/bash: No such file or directory
while running any piece of bash script like this:
#!/bin/bash echo "pouet"
I've tried running it on a Fedora 19 and everything went well.
I'm on Debian 7, I've tried parsing the first line to search for
\n\r but everything was clean (every script I've made so far seems to behave the same way).
$PATH looks like this:
I've tried it with a normal user or root, same result.
But the rest of the script seems to behave normally (echo is interpreted).
/bin/bash exists and is executable.
$ LC_ALL=C sed -n l < tesT.sh \357\273\277#!/bin/bash$ echo "pouet"$