Re: Stupid shebang tricks & env -

2005-05-12 Thread Wesley J. Landaker
On Thursday 12 May 2005 20:43, Adeodato Simó wrote: > * Wesley J. Landaker [Thu, 12 May 2005 20:41:17 -0600]: > > On Thursday 12 May 2005 20:18, Adeodato Simó wrote: > > > Uhm, nice (one fork less), but then you can "quote arguments" (and > > > "$*" won't help here). > > > > But "$@" will. > >

Re: Stupid shebang tricks & env -

2005-05-12 Thread Adeodato Simó
* Wesley J. Landaker [Thu, 12 May 2005 20:41:17 -0600]: > On Thursday 12 May 2005 20:18, Adeodato Simó wrote: > > Uhm, nice (one fork less), but then you can "quote arguments" (and > > "$*" won't help here). > But "$@" will. No, sorry, it won't (I tested this stuff). At least in my system,

Re: Stupid shebang tricks & env -

2005-05-12 Thread Wesley J. Landaker
On Thursday 12 May 2005 20:18, Adeodato Simó wrote: > * martin f krafft [Fri, 13 May 2005 04:10:48 +0200]: > > also sprach Adeodato Simó <[EMAIL PROTECTED]> [2005.05.13.0338 +0200]: > > > >8 /usr/bin/smartenv 8<- > > > #! /bin/sh > > > > > > sh -c "$*" > > >

Re: Stupid shebang tricks & env -

2005-05-12 Thread Adeodato Simó
* martin f krafft [Fri, 13 May 2005 04:10:48 +0200]: > also sprach Adeodato Simó <[EMAIL PROTECTED]> [2005.05.13.0338 +0200]: > > >8 /usr/bin/smartenv 8<- > > #! /bin/sh > > sh -c "$*" > > > #!/bin/sh > exec $* Uh

Re: Stupid shebang tricks & env -

2005-05-12 Thread martin f krafft
also sprach Adeodato Simó <[EMAIL PROTECTED]> [2005.05.13.0338 +0200]: > >8 /usr/bin/smartenv 8<- > #! /bin/sh > > sh -c "$*" > #!/bin/sh exec $* > Now go and make /usr/bin/smartenv standard. :P it's just another

Re: Stupid shebang tricks & env -

2005-05-12 Thread Adeodato Simó
* martin f krafft [Wed, 11 May 2005 19:13:49 +0200]: > also sprach Geert Stappers <[EMAIL PROTECTED]> [2005.05.11.1802 +0200]: > > #!/usr/bin env - perl -w > > so, the extra hyphen, the trick? > No. shebang lines can only take one argument. This works: #! /usr/bin/smartenv perl -w And

Re: Stupid shebang tricks & env -

2005-05-11 Thread martin f krafft
also sprach Geert Stappers <[EMAIL PROTECTED]> [2005.05.11.1802 +0200]: > #!/usr/bin env - perl -w > > so, the extra hyphen, the trick? No. shebang lines can only take one argument. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <[EMAIL PROTECTE

Re: Stupid shebang tricks & env -

2005-05-11 Thread Sven Mueller
Geert Stappers wrote on 11/05/2005 18:02: > Does > > #!/usr/bin env - perl -w > > so, the extra hyphen, the trick? This has the additional problem that "-" implies "-i", which starts with an empty environment. And many script actually use environment variables to control their behaviour. cu, s

Re: Stupid shebang tricks & env -

2005-05-11 Thread Geert Stappers
On Wed, May 11, 2005 at 03:48:51PM +0200, martin f krafft wrote: > also sprach Bas Zoetekouw <[EMAIL PROTECTED]> [2005.05.11.1528 +0200]: > > > True. But before it will even be considered to make env standard, > > > the parameter problem would have to be solved. perl -w and /bin/sh > > > -e are jus