[linux-elitists] Re: CLI/Cygwin

Michael Shields shields@msrl.com
Tue Jan 6 17:42:00 PST 2004

In message <20040106200224.GC32512@ix.netcom.com>,
"Karsten M. Self" <kmself@ix.netcom.com> wrote:
> I typically keep a script "launch" for backgrounding processes out of
> job control:
> ------------------------------------------------------------------------
> #!/bin/bash
> # launch arguments
> exec $@ &

This should be:

    exec "$@" &

Without the quotes, arguments with spaces will not be handled

Also, there is no reason for this to be a bash script instead of an
sh script.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://allium.zgp.org/pipermail/linux-elitists/attachments/20040107/99a12598/attachment.pgp 

More information about the linux-elitists mailing list