[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linux Bash chokes on Cygwin Scripts (bad interpreter)
From: |
Paul Jarc |
Subject: |
Re: Linux Bash chokes on Cygwin Scripts (bad interpreter) |
Date: |
Thu, 06 Jun 2002 12:24:56 -0400 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) |
"\"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