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:
parent
e4326229b6
commit
430fe58a24
1 changed files with 1 additions and 1 deletions
|
|
@ -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" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue