autoconf-patches
[Top][All Lists]
Advanced

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

Re: using grep with \> is not portable


From: Paul Eggert
Subject: Re: using grep with \> is not portable
Date: Mon, 19 Mar 2007 11:14:26 -0700
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux)

Jim Meyering <address@hidden> writes:

>       * doc/autoconf.texi
>       (Limitations of Usual Tools): Also list \< and \>, and mention that
>       HP-UX's grep, like the one from Solaris, does not support that syntax.

Thanks.  I added the other GNU escape sequences, too, as follows:

2007-03-19  Paul Eggert  <address@hidden>

        * doc/autoconf.texi (Limitations of Usual Tools): Warn about other
        nonstandard grep R.E. escape sequences.

--- doc/autoconf.texi   17 Mar 2007 09:13:54 -0000      1.1137
+++ doc/autoconf.texi   19 Mar 2007 18:13:32 -0000
@@ -13563,7 +13563,9 @@ escape characters in the string @samp{$(
 alternation, @samp{\|}, is common but Posix does not require its
 support in basic regular expressions, so it should be avoided in
 portable scripts.  Solaris and HP-UX @command{grep} do not support it.
-Similarly, @samp{\<}, @samp{\>}, @samp{\+} and @samp{\?} should be avoided.
+Similarly, the following escape sequences should also be avoided:
address@hidden<}, @samp{\>}, @samp{\+}, @samp{\?}, @samp{\`}, @samp{\'},
address@hidden, @samp{\b}, @samp{\S}, @samp{\s}, @samp{\W}, and @samp{\w}.


 @item @command{join}




reply via email to

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