[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ITP: tsocks -- transparent network access through a SOCKS 4 or 5 proxy



Richard Braakman <dark@xs4all.nl> wrote:

> This is a far too common mistake.  Using exec $* will break arguments
> that contain embedded spaces.  Use
> exec ${1+"$@"}
> to call another program with the same arguments that your script got.
> (The 1+ construction is there to do the right thing if there are no
> arguments at all.  It's not needed in bash.  I don't know about other
> shells.)

With any POSIX shell this can be replaced by

exec "$@"
-- 
Debian GNU/Linux 2.2 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: