[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: binfmt_script and ^M
From: |
Robert Read |
Subject: |
Re: binfmt_script and ^M |
Date: |
Mon, 5 Mar 2001 12:39:07 -0800 |
User-agent: |
Mutt/1.2.5i |
On Mon, Mar 05, 2001 at 07:58:52PM +0100, Pozsar Balazs wrote:
>
> And what does POSIX say about "#!/bin/sh\r" ?
> In other words: should the kernel look for the interpreter between the !
> and the newline, or [the first space or newline] or the first whitespace?
>
> IMHO, the first whitespace. Which means that "#!/bin/sh\r" should invoke
> /bin/sh. (though it is junk).
>
The line terminator, '\n', is what terminates the interpreter. White
space (in this case, only ' ' and '\t') is used to seperate the
arguments to the interpreter. This allows scripts to pass args to
intepreters, as in #!/usr/bin/per -w or #!/usr/bin/env perl -w
So is '\r' a line terminator? For Linux, no. Should '\r' seperate
arguments? No, that would be very strange.
robert
- Re: binfmt_script and ^M, (continued)
- Re: binfmt_script and ^M, John Kodis, 2001/03/05
- Re: binfmt_script and ^M, Rik van Riel, 2001/03/05
- Re: binfmt_script and ^M, Jeff Mcadams, 2001/03/05
- Re: binfmt_script and ^M, Paul Flinders, 2001/03/05
- Re: binfmt_script and ^M, Andreas Schwab, 2001/03/05
- Re: binfmt_script and ^M, Paul Flinders, 2001/03/05
- Re: binfmt_script and ^M, Paul Flinders, 2001/03/05
- Re: binfmt_script and ^M, Andreas Schwab, 2001/03/06
- Re: binfmt_script and ^M, Paul Flinders, 2001/03/06
- Re: binfmt_script and ^M, Pozsar Balazs, 2001/03/05
- Re: binfmt_script and ^M,
Robert Read <=
- Re: binfmt_script and ^M, Richard B. Johnson, 2001/03/05
- Re: binfmt_script and ^M, Richard B. Johnson, 2001/03/05
- Re: binfmt_script and ^M, Dr. Kelsey Hudson, 2001/03/05
- Re: binfmt_script and ^M, Peter Samuelson, 2001/03/06
- Re: binfmt_script and ^M, Dr. Kelsey Hudson, 2001/03/06
[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