On Fri, 1 Dec 2006 18:59:29 +0100 Etaoin Shrdlu wrote: > On Friday 1 December 2006 17:11, Etaoin Shrdlu wrote: > > > > bash: ./config: /bin/bash: bad interpreter: Permission denied (i'm > > > root) > > > > This happened to me once. I finally found that the script source > > file had been created with windows notepad (don't ask!), so it had > > windows cr+lf line breaks, instead of unix style ones. > > Just out of curiosity, I did another check and it turns out that, in > the situation I described, the error message is different (bad > interpreter: No such file or directory). I had forgot the exact > error, since it was much time ago. > Instead, the other suggestions about noexec are right.
Should one happen to have a script with CR/LF pairs (as might happen if the script came from a DOS/Windoze machine), bash will try to find "/bin/bash\r" which doesn't exist. This gives a "bad interpreter" message ... -- gentoo-user@gentoo.org mailing list