Distribution: Fedora Core 4
When a shell script or any other script using the hash-bang to run an
interpreter happens ot have Windows-style line termination (\r\n), trying to run
it returns "bad interpreter", because the kernel is parsing the \r as part of
the interpreter file name.
The kernel already ignores spaces at the end of the interpreter line. It should
also ignore the \r character at the very end of the line.
Steps to reproduce:
Create a file test.sh containing the following line:
Do unix2dos test.sh
Make it executable: chmod a+x test.sh
Try to run it: ./test.sh
Created attachment 8485 [details]
This trivial patch should fix this
Eric, would you mind to submit the patch to lkml, since it won't be picked up from bugzilla.
Is this resolved or what?