[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24055: Bug: #!/usr/bin/env gives poor error message for DOS line-end
From: |
Pádraig Brady |
Subject: |
bug#24055: Bug: #!/usr/bin/env gives poor error message for DOS line-endings |
Date: |
Fri, 22 Jul 2016 23:57:58 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 22/07/16 21:39, Simon Richard Clarkstone wrote:
> I have found a poor error message in env (GNU coreutils) 8.23, on FC22.
>
> ---
>
> I created the following executable file, with a DOS line-end:
>
> #!/usr/bin/env sh
>
> When run, it displays the following error message on my terminal:
>
> : No such file or directory
>
> This error message is cryptic. However, if you process stderr through
> `cat -v` to display nonprintable characters, you find the error message
> has a CR in it:
>
> /usr/bin/env: sh^M: No such file or directory
That's fixed by the new file name quoting in coreutils 8.25.
The new output is:
/usr/bin/env: ‘sh\r’: No such file or directory
thanks,
Pádraig.