diff options
author | Olly Betts <olly@survex.com> | 2015-01-07 18:14:44 +1300 |
---|---|---|
committer | Olly Betts <olly@survex.com> | 2015-01-07 18:14:44 +1300 |
commit | 430fe58a24339edace14d60de315f357bd813405 (patch) | |
tree | d21b23496ec33a026a8438fe5423d8e36a1adf7e | |
parent | e4326229b65e6d8ff1b7c55a04bdb2f950aed8e1 (diff) | |
download | swig-430fe58a24339edace14d60de315f357bd813405.tar.gz |
Properly quote parameters in preinst-swig wrapper.
$* is subject to word-splitting and pathname expansion, whereas "$@"
expands to each parameter as a separate quoted word.
Some ancient shells expand "$@" to "" if there are no parameters, but
that isn't really a concern here as running swig without arguments isn't
useful.
-rwxr-xr-x | preinst-swig.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/preinst-swig.in b/preinst-swig.in index 0f49e2e5e..384593ce1 100755 --- a/preinst-swig.in +++ b/preinst-swig.in @@ -4,4 +4,4 @@ srcdir=`cd "$builddir" && cd '@srcdir@' && pwd` SWIG_LIB=$srcdir/Lib #SWIG_LIB=`cygpath -w $srcdir/Lib` # For native Windows version of SWIG export SWIG_LIB -exec "$builddir/swig" $* +exec "$builddir/swig" "$@" |