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.
>
>
* 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,
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 "$*"
> > >
* 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
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
* 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
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
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
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
9 matches
Mail list logo