Escape globs in hasgq arguments in order to prevent bash from trying
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:47:19 +0000 (03:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:47:19 +0000 (03:47 -0000)
to perform filename expansion. (trunk r12591)

svn path=/main/branches/2.1.6/; revision=12872

bin/ebuild.sh

index 124fd35abd1ada86ebcde409bd42e105a87ee067..301eb7949b3ffd324efa28c6632e6487aaf026d9 100755 (executable)
@@ -486,9 +486,9 @@ econf() {
                if [[ -n ${ABI} && -n ${!LIBDIR_VAR} ]] ; then
                        CONF_LIBDIR=${!LIBDIR_VAR}
                fi
-               if [[ -n ${CONF_LIBDIR} ]] && ! hasgq --libdir=* "$@" ; then
-                       export CONF_PREFIX=$(hasg --exec-prefix=* "$@")
-                       [[ -z ${CONF_PREFIX} ]] && CONF_PREFIX=$(hasg --prefix=* "$@")
+               if [[ -n ${CONF_LIBDIR} ]] && ! hasgq --libdir=\* "$@" ; then
+                       export CONF_PREFIX=$(hasg --exec-prefix=\* "$@")
+                       [[ -z ${CONF_PREFIX} ]] && CONF_PREFIX=$(hasg --prefix=\* "$@")
                        : ${CONF_PREFIX:=/usr}
                        CONF_PREFIX=${CONF_PREFIX#*=}
                        [[ ${CONF_PREFIX} != /* ]] && CONF_PREFIX="/${CONF_PREFIX}"