2004-08-30 Gary V. Vaughan <gary@gnu.org>
+ * config/ltmain.in: Double quote even $# for the sake of sh.test.
+ (exec_cmd): Be careful about "`\"foo\"`" quoting, even in comments
+ to avoid triggering the tests in sh.test.
+
* configure.ac: Because of the way the autoconf C++ testing
works, we need to call the C test first to work in an environment
that has no C++ compiler.
# Evaluate the configuration. Be careful to quote the path
# and the sed script, to avoid splitting on whitespace, but
- # also don't use non-portable "`\"foo\"`", so we have to do
- # it in 2 steps:
+ # also don't use non-portable quotes within backquotes within
+ # quotes we have to do it in 2 steps:
extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
eval "$extractedcf"
else
set -x
;;
- --dlopen) test $# -eq 0 && func_missing_arg "$opt" && break
+ --dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
execute_dlfiles="$execute_dlfiles $1"
;;
--features) func_features ;;
--finish) mode="finish" ;;
- --mode) test $# -eq 0 && func_missing_arg "$opt" && break
+ --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
case $1 in
# Valid mode arguments:
clean) ;;
show=:
;;
- --tag) test $# -eq 0 && func_missing_arg "$opt" && break
+ --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
preserve_args="$preserve_args $opt $1"
func_enable_tag "$1" # tagname is set here
shift