autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to do "$@"?


From: Paul Eggert
Subject: Re: how to do "$@"?
Date: Sat, 20 Apr 2002 23:37:11 -0700 (PDT)

> From: Raja R Harinath <address@hidden>
> Date: Fri, 19 Apr 2002 16:26:00 -0500

> >   ${ZSH_VERSION-:} alias -g '${1+"$@"}'='"$@"'
> 
> This'll not work in zsh: ZSH_VERSION expands to a non-empty version
> string.

Oops.  Thanks.  What was I thinking?  I installed this patch.

2002-04-20  Paul Eggert  <address@hidden>

        * doc/autoconf.texi (Shell Substitutions): Fix typos in yesterday's
        ZSH_VERSION fixes.  Bug reported by Raja R Harinath.
        * lib/autotest/general.m4 (AT_INIT): Likewise.
        * tests/atgeneral.m4 (AT_INIT): Likewise.

Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.615
diff -p -u -r1.615 autoconf.texi
--- doc/autoconf.texi   20 Apr 2002 06:09:01 -0000      1.615
+++ doc/autoconf.texi   21 Apr 2002 06:32:41 -0000
@@ -8477,7 +8477,7 @@ One workaround relies on Zsh's ``global 
 @address@hidden"$@@"@}} into @samp{"$@@"} by itself:
 
 @example
address@hidden:@} alias -g 'address@hidden"$@@"@}'='"$@@"'
+test "address@hidden@}" = set && alias -g 'address@hidden"$@@"@}'='"$@@"'
 @end example
 
 A more conservative workaround is to avoid @samp{"$@@"} if it is
Index: lib/autotest/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autotest/general.m4,v
retrieving revision 1.132
diff -p -u -r1.132 general.m4
--- lib/autotest/general.m4     20 Apr 2002 06:09:02 -0000      1.132
+++ lib/autotest/general.m4     21 Apr 2002 06:32:41 -0000
@@ -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+"address@hidden"}'\''='\''"address@hidden"'\'''
               echo "cd $at_dir"
               echo 'exec ${CONFIG_SHELL-'"$SHELL"'}' "$[0]" \
                    '-v -d' "$at_debug_args" "$at_group" '${1+"address@hidden"}'
Index: tests/atgeneral.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/atgeneral.m4,v
retrieving revision 1.72
diff -p -u -r1.72 atgeneral.m4
--- tests/atgeneral.m4  20 Apr 2002 06:09:02 -0000      1.72
+++ tests/atgeneral.m4  21 Apr 2002 06:32:41 -0000
@@ -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+"address@hidden"}'\''='\''"address@hidden"'\'''
       echo 'exec ${CONFIG_SHELL-'"$SHELL"'} '"$[0]"' -v -d '"$at_group"' 
${1+"address@hidden"}'
       echo 'exit 1'
     ) >debug-$at_group.sh



reply via email to

[Prev in Thread] Current Thread [Next in Thread]