]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Mention another line-counting alternative.
authorEric Blake <eblake@redhat.com>
Thu, 20 May 2010 21:07:03 +0000 (15:07 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 20 May 2010 21:08:05 +0000 (15:08 -0600)
GCS lists sed but not wc as a portable app for Makefile.

* doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
how to use sed to count lines.
Suggested by Paolo Bonzini.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
doc/autoconf.texi

index fd7d06842a1c9727e739ca80fb1a6a786df544e1..f9b7d0411fc60123b4d847ab857f5ae5de2e939d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-05-20  Eric Blake  <eblake@redhat.com>
+
+       Mention another line-counting alternative.
+       * doc/autoconf.texi (Limitations of Usual Tools) <grep>: Mention
+       how to use sed to count lines.
+       Suggested by Paolo Bonzini.
+
 2010-05-12  Eric Blake  <eblake@redhat.com>
 
        Document the grep workaround.
index ff62eac92c33d0025c74d618c5eb62f0bae6d572..cbdb56b8df73f7860c8c22b97e9694a5fb0cfaf8 100644 (file)
@@ -17830,8 +17830,8 @@ 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}.
+but works with @code{grep -c '^'}.  Other alternatives for counting
+lines are to use @code{sed -n '$='} or @code{wc -l}.
 
 Some traditional @command{grep} implementations do not work on long
 input lines.  On AIX the default @code{grep} silently truncates long