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.
This commit is contained in:
Olly Betts 2015-01-07 18:14:44 +13:00
commit 430fe58a24

View file

@ -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" "$@"