Re: ITP: tsocks -- transparent network access through a SOCKS 4 or 5 proxy
On Mon, Jul 16, 2001 at 05:19:42PM +0200, Tamas SZERB wrote:
> alabama:~$ cat tsocks
> #!/bin/sh
>
> export LD_PRELOAD="$LD_PRELOAD /usr/lib/libtsocks.so"
>
> exec $*
> #EOF
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.)
--
Richard Braakman
Will write free software for money.
See http://www.xs4all.nl/~dark/resume.html
Reply to: