Hi Cameron,
On Wed, Apr 06, 2016 at 09:50:28AM +1000, Cameron Simpson wrote:
> Consider using ${1+"$@"}, which preserves quoting.How is this better than just "$@"? I believe it's non-portable (and for that reason I'm less familiar with that syntax) but if I understand correctly it expands like: if $1 is set use that, otherwise use "$@" (all arguments, individually quoted) It seems as though this always evaluates to $1 (since if $1 is unset, $@ is also necessarily empty)... which I think is not what is needed here. Am I mistaken? I believe just "$@" (including the quotes) is what you want here. Thanks -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
pgpbAVcnrRmCf.pgp
Description: PGP signature
