[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: binfmt_script and ^M
From: |
Andries . Brouwer |
Subject: |
Re: binfmt_script and ^M |
Date: |
Mon, 5 Mar 2001 22:15:44 +0100 (MET) |
> And what does POSIX say about "#!/bin/sh\r" ?
Nothing at all. The #! construction is not part of any standard
right now. The implementation is messy - different operating systems
do vaguely similar things, but all details differ.
Linux can do whatever it wants.
Of course it helps portability if we stay close to what other OSs do.
There is some discussion at
http://www.cwi.nl/~aeb/std/hashexclam-1.html
Additions and corrections welcome.
In this particular case I have no strong opinion,
but would not object to removing the '\r'.
The standard defines whitespace in the POSIX locale, as one or more
<blank>s (<space>s and <tab>s), <newline>s, <carriage-return>s,
<form-feed>s, and <vertical-tab>s.
Some systems strip the #! line for trailing whitespace, some don't.
Andries
- Re: binfmt_script and ^M, (continued)
[PATCH]: print missing interpreter name [Was: Re: binfmt_script and ^M], Jan Nieuwenhuizen, 2001/03/05
Re: binfmt_script and ^M, Erik Hensema, 2001/03/05
Re: binfmt_script and ^M, Jesse Pollard, 2001/03/05
Re: binfmt_script and ^M,
Andries . Brouwer <=
Re: binfmt_script and ^M, Jesse Pollard, 2001/03/06
Re: binfmt_script and ^M, Jesse Pollard, 2001/03/06