Angus Leeming wrote:

> The moral of the story is that this works:
> 
> CONFIGURE="../configure --prefix=/usr/local ${EXTRAINC}
> --enable-maintainer-mode --with-version-suffix
> --with-included-gettext"
> 
> echo ${CONFIGURE} "--with-frontend=${FRONTEND}"
> cd ${BUILDDIR}
> ${CONFIGURE} "--with-frontend=${FRONTEND}"
> 
> But putting the '--with-frontend=...' in the string does not.

And here's the elegant solution...

$ cat conftest.sh
#! /bin/sh
CONFIGURE="./configure --with-frontend='xforms qt gtk'"
echo "${CONFIGURE}"
eval "${CONFIGURE}"


$ cat configure
#! /bin/sh
for arg in "$@"
do
        echo "arg is \"$arg\""
done

-- 
Angus

Reply via email to