Re: profile.d [was Re: UMASK 002 or 022?]
Herbert Xu <herbert@gondor.apana.org.au> wrote:
> Ethan Benson <erbenson@alaska.net> wrote:
>>
>>> > exec /bin/ls --color-auto $*
>>>=20
>>> Close. /bin/ls --color=3Dauto "$@"
>> well both will work, yours changes the way the arguments are quoted by
>> the shell. yours is arguably safer.
> Actually, $* doesn't work in all cases, consider the difference between
> ls
> and
> ls ""
Duh, I'm replying to my self :) What I said would've applied if he had
used "$*". The problem with $* without the quotes is of course with
things like path expansion, field splitting, etc.
--
Debian GNU/Linux 2.1 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Reply to: