From: Eric Blake Date: Wed, 12 May 2010 14:38:57 +0000 (-0600) Subject: Document the grep workaround. X-Git-Tag: v2.66~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64f8fde40c5fa18f1b4a2ade9ce96ac7a2addff3;p=thirdparty%2Fautoconf.git Document the grep workaround. * doc/autoconf.texi (Limitations of Usual Tools) : Document the bug. Signed-off-by: Eric Blake --- diff --git a/ChangeLog b/ChangeLog index 6a614bc7..fd7d0684 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2010-05-12 Eric Blake + + Document the grep workaround. + * doc/autoconf.texi (Limitations of Usual Tools) : Document + the bug. + 2010-05-12 Mark Hessling (tiny change) Work around QNX4 grep bug. diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 39e11a50..ff62eac9 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -17829,6 +17829,10 @@ redirect the standard output and standard error (in case the file doesn't exist) of @code{grep} to @file{/dev/null}. Check the exit status of @code{grep} to determine whether it found a match. +The QNX4 implementation fails to count lines with @code{grep -c '$'}, +but works with @code{grep -c '^'}. Another alternative for counting +lines is to use @code{wc -l}. + Some traditional @command{grep} implementations do not work on long input lines. On AIX the default @code{grep} silently truncates long lines on the input before matching.