autoconf-patches
[Top][All Lists]
Advanced

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

test -n -> test -z patches installed


From: Paul Eggert
Subject: test -n -> test -z patches installed
Date: Mon, 24 Feb 2003 22:48:38 -0800 (PST)

I installed the following to fix a couple of typos where "test -n"
was written but "test -z" was intended.

2003-02-24  Paul Eggert  <address@hidden>

        * lib/m4sugar/m4sh.m4 (AS_SHELL_SANITIZE): Fix typo in
        2002-09-01 patch by replacing "test -n" with "test -z".
        This fixes a bug reported by Tom Epperly in
        <http://mail.gnu.org/archive/html/autoconf/2003-02/msg00139.html>.

        * doc/autoconf.texi (Shell Substitutions): test -n -> test -z,
        to fix a mismatch between example and discussion.

Index: lib/m4sugar/m4sh.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/m4sugar/m4sh.m4,v
retrieving revision 1.92
diff -p -u -r1.92 m4sh.m4
--- lib/m4sugar/m4sh.m4 5 Nov 2002 07:09:14 -0000       1.92
+++ lib/m4sugar/m4sh.m4 25 Feb 2003 06:14:06 -0000
@@ -167,7 +167,7 @@ for as_var in \
   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   LC_TELEPHONE LC_TIME
 do
-  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
+  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
     eval $as_var=C; export $as_var
   else
     $as_unset $as_var
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.719
diff -p -u -r1.719 autoconf.texi
--- doc/autoconf.texi   23 Feb 2003 23:00:02 -0000      1.719
+++ doc/autoconf.texi   25 Feb 2003 06:14:06 -0000
@@ -9159,7 +9159,7 @@ use @samp{test -z "`cd /`"} because the 
 @example
 $ @kbd{pwd}
 /tmp
-$ @kbd{test -n "`cd /`" && pwd}
+$ @kbd{test -z "`cd /`" && pwd}
 /
 @end example
 




reply via email to

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