This is the mail archive of the
mailing list for the GCC project.
Re: PATCH RFA: Support --enable-build-with-cxx at top level
Ralf Wildenhues wrote:
>The most conservative quoting is something like
> as some old test programs (or shells) do the wrong thing when the
> arguments start with a hyphen.
The way I interpreted this extract from libtool/tests/sh.test (which I
happened to run into just the other day):
# Check for using test X... instead of test "X...
if $EGREP -n -e 'test[ ]+(![ ])?(-.[ ]+)?X' $scripts; then
echo "use \`test \"X...\"' instead of \`test X'"
# Check for using test $... instead of test "$...
if $EGREP -n -e 'test[ ]+(![ ])?(-.[ ]+)?X?\$' $scripts; then
echo "use \`test \"\$...\"' instead of \`test \$'"
... was that both the 'x' and the $variable should be inside the quotes when
using this syntax. Did I misunderstand?