Re: env behavior incorrect

2003-06-14 Thread Jens Elkner
'Paul Jarc wrote:' > > >#! interpreter [argument] > > Note that this is a doc bug; the space was never required. > http://www.in-ulm.de/~mascheck/various/shebang/> Ok, thanx Paul, Bob and Jim for your information - I learned a lot. The different "usage" of the arguments by different

Re: env behavior incorrect

2003-06-04 Thread Paul Jarc
[EMAIL PROTECTED] (Bob Proulx) wrote: > Paul Jarc wrote: >> Bob Proulx wrote: >>> One or more spaces or tabs must separate interpreter and argument. >> >> Note that this is a doc bug; the space was never required. > > I agree that there was never a need for a space after the #! which is > to wh

Re: env behavior incorrect

2003-06-04 Thread Bob Proulx
Paul Jarc wrote: > Bob Proulx wrote: > > Found in the exec man page on some systems: > > > > The initial line of a script file must begin with #! as the first two > > bytes, followed by zero or more spaces, followed by interpreter or > > > > interpreter argument, as in: > > > >

Re: env behavior incorrect

2003-06-04 Thread Paul Jarc
[EMAIL PROTECTED] (Bob Proulx) wrote: > Found in the exec man page on some systems: > > The initial line of a script file must begin with #! as the first two > bytes, followed by zero or more spaces, followed by interpreter or > interpreter argument, as in: > >#! inter

Re: env behavior incorrect

2003-06-03 Thread Jim Meyering
Jens Elkner <[EMAIL PROTECTED]> wrote: ... > Furthermore according to XBD Utility Syntax Guidelines, long option support > (i.e. --ignore-environment, --unset) should be dropped. An application may accept long-named options like --ignore-environment and still be POSIX compliant. There is no reas

Re: env behavior incorrect

2003-06-03 Thread Bob Proulx
Jens Elkner wrote: > 'Paul Jarc wrote:' > > scripts are limited to only one argument in the "#!" line > > after the interpreter. > > Hmm, have you any pointer to a guideline or standard for this. Currently > I have not found anything wrt. #! interpreter arg, expect in the Solaris > exec manpage :(

Re: env behavior incorrect

2003-06-03 Thread Jens Elkner
'Paul Jarc wrote:' > > Jens Elkner <[EMAIL PROTECTED]> wrote: > > unfortunately env is not POSIX, or to be more specific, not "The Open Group > > Base Specifications Issue 6 IEEE Std 1003.1, 2003 Edition" compliant on Linux. > > (see http://www.unix-systems.org/version3/iso_std.html ) > > > > E.g.

Re: env behavior incorrect

2003-06-03 Thread Paul Jarc
[EMAIL PROTECTED] (Paul Jarc) wrote: > Jens Elkner <[EMAIL PROTECTED]> wrote: >> Last but not least - why not >> ... >> static char *pointer2null = NULL; >> ... >> main() { >> ... >> if (ignore_environment) >> environ = &pointer2null; > > I haven't looked at t

Re: env behavior incorrect

2003-06-03 Thread Paul Jarc
Jens Elkner <[EMAIL PROTECTED]> wrote: > unfortunately env is not POSIX, or to be more specific, not "The Open Group > Base Specifications Issue 6 IEEE Std 1003.1, 2003 Edition" compliant on Linux. > (see http://www.unix-systems.org/version3/iso_std.html ) > > E.g.: filename.env > #!/usr/bin/env -i

env behavior incorrect

2003-06-02 Thread Jens Elkner
Hi, unfortunately env is not POSIX, or to be more specific, not "The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2003 Edition" compliant on Linux. (see http://www.unix-systems.org/version3/iso_std.html ) E.g.: filename.env #!/usr/bin/env -i command args ... should exec command with t