"\"Sandy McPherson\" <allset_bv <at> yahoo" <dot@news0.enhfd.nl.easynet.net>
com wrote:
> The script will run correctly, but somehow
>
> script
>
> chokes on the
>
> #!/bin/sh^M
>
> it looks for a file called /bin/sh^M and not /bin/sh.
Right, and "it" in this case is the Linux kernel. The problem occurs
before bash has a chance to do anything about it.
> Why does the Linux version not handle the DOS format files?
Because Unix text files use plain line feeds to represent newlines.
> Is there a patch to fix this.
You could patch the kernel, but it's easier to fix the script.
paul