Re: Stupid shebang tricks & env -
* 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, the
kernel will pass, for a she-bang like:
#!/foo bar "baz quux"
the string 'bar "baz quux"' as $1. To break that into parts, you need
exactly "$*".
--
Adeodato Simó
EM: asp16 [ykwim] alu.ua.es | PK: DA6AE621
The surest way to corrupt a youth is to instruct him to hold in higher
esteem those who think alike than those who think differently.
-- F. Nietzsche
Reply to: