cwsulliv@triad.rr.com wrote:
> Bash will currently fail to execute a script if (at least) the
> first line of the script is terminated with the DOS newline
> (\r\n) sequence, since the name of the shell command appears
> to be "bash\r", which doesn't normally exist.
And thus the kernel (which is what inspects the #! line) isn't finding
and running bash at all. There's nothing bash can do about this if
it's never invoked. You can create a symlink named "bash\r" to make
the kernel find bash by this name:
# ln -s bash $'/bin/bash\r'
You can also ask your OS distributor to install such a symlink by
default.
paul