]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AT_INIT): Fix typos in yesterday's ZSH_VERSION fixes. Bug reported
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Apr 2002 06:35:08 +0000 (06:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Apr 2002 06:35:08 +0000 (06:35 +0000)
by Raja R Harinath.

lib/autotest/general.m4
tests/atgeneral.m4

index 3dd784f0d45df06ca0d9111828ec79548ee2765f..8d429fd984d5a0f96df31d26ec0a6a4139d90413 100644 (file)
@@ -569,7 +569,7 @@ _ATEOF
             # Create the debugging script.
             {
               echo "#! /bin/sh"
-              echo '${ZSH_VERSION-:} alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
+              echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$[@]"}'\''='\''"$[@]"'\'''
               echo "cd $at_dir"
               echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$[0]" \
                    '-v -d' "$at_debug_args" "$at_group" '${1+"$[@]"}'
index e574782736b58aefff70986bd365eb57c767216d..99d05f389f0e9c22441638ed00621e3586f01531 100644 (file)
@@ -318,7 +318,7 @@ elif test $at_debug = false; then
   for at_group in $at_fail_list; do
     echo $at_n " $at_group$at_c"
     ( echo "#! /bin/sh"
-      echo '${ZSH_VERSION-:} alias -g '\''${1+"$@"}'\''='\''"$@"'\'''
+      echo 'test "${ZSH_VERSION+set}" = set && alias -g '\''${1+"$[@]"}'\''='\''"$[@]"'\'''
       echo 'exec ${CONFIG_SHELL-'"$SHELL"'} '"$[0]"' -v -d '"$at_group"' ${1+"$[@]"}'
       echo 'exit 1'
     ) >debug-$at_group.sh