Argh, I sent that message before it was done.. sorry.
Another try:

2006-04-04  Stepan Kasal <[EMAIL PROTECTED]>,
            Eric Blake  <[EMAIL PROTECTED]>,
            Ralf Wildenhues <[EMAIL PROTECTED]>

        * lib/autoconf/general.m4 (_AC_CACHE_DUMP): Fix the detection of
        whether `set' quotes correctly: redirect stderr of the tested
        `set', and use a subshell, for Ultrix; use `sed' instead of
        `grep' for zsh `set' which may write binary output; match only
        at the beginning of the line, to avoid more false positives.
        * doc/autoconf.texi (Shell Substitutions): Document `^' vs. `|'.

Index: lib/autoconf/general.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/general.m4,v
retrieving revision 1.895
diff -u -r1.895 general.m4
--- lib/autoconf/general.m4     4 Apr 2006 16:13:47 -0000       1.895
+++ lib/autoconf/general.m4     4 Apr 2006 22:13:58 -0000
@@ -1812,8 +1812,8 @@
 # and sets the high bit in the cache file unless we assign to the vars.
 {
   (set) 2>&1 |
-    case `(ac_space=' '; set | grep ac_space) 2>&1` in
-    *ac_space=\ *)
+    case `(ac_space=' '; set) 2>&1 | sed -n '/^ac_space=/p'` in
+    ac_space=\ *)
       # `set' does not quote correctly, so add quotes (double-quote
       # substitution turns \\\\ into \\, and sed turns \\ into \).
       sed -n \
Index: doc/autoconf.texi
===================================================================
RCS file: /cvsroot/autoconf/autoconf/doc/autoconf.texi,v
retrieving revision 1.982
diff -u -r1.982 autoconf.texi
--- doc/autoconf.texi   3 Apr 2006 08:06:22 -0000       1.982
+++ doc/autoconf.texi   4 Apr 2006 22:13:57 -0000
@@ -11007,6 +11007,11 @@
 echo $(case x in x) echo hello;; esac)
 @end example
 
[EMAIL PROTECTED] ^
[EMAIL PROTECTED] ^ quoting
+Always quote @samp{^}, otherwise traditional shells such as
[EMAIL PROTECTED]/bin/sh} on Solaris 10 treat this like @samp{|}.
+
 @end table
 
 


Reply via email to