Re: Shebang definition
"Michael T Kerrisk" <[email protected]> Thu, 19 Feb 2004 13:08:43 +0100 (MET)
| Newsgroups | gmane.linux.lsb.discuss |
|---|---|
| Message-ID | <[email protected]> |
[Sorry Tobias, first reply didn't include the list] > Hello, > > I wonder where the '#!' shebang is defined. I thought it is part of > SUSv3, but it doesn't seem to be required (see 'environ, execl, execv, > execle, execve, execlp, execvp - execute a file' and 'sh - shell, > the standard command language interpreter'. > In the latter one finds 'Furthermore, on systems that support executable > scripts (the "#!" construct)[...]', this hints that it is common but not > required [cf. the section 'Historically there have been two ways that > implementations can exec shell scripts.' in 'environ, execl ...']. Exactly -- SUSv3 does not specify hash-shriek. An interesting page on the topic of #! is at: #! - the Unix truth as far as I know it. Andries Brouwer http://www.cwi.nl/~aeb/std/hashexclam.html > Shouldn't therefore the LSB define/require the support of the shebang? Perhaps tricky -- given the variations noted on the page above, what is the correct behaviour to standardize on? Cheers, Michael -- Michael Kerrisk [email protected] GMX ProMail (250 MB Mailbox, 50 FreeSMS, Virenschutz, 2,99 EUR/Monat...) jetzt 3 Monate GRATIS + 3x DER SPIEGEL +++ http://www.gmx.net/derspiegel +++