docs/72985: `grep` man page typo/error for --line-buffering / --line-buffered option

Giorgos Keramidas keramida at freebsd.org
Fri Oct 22 08:50:33 UTC 2004


The following reply was made to PR docs/72985; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at freebsd.org>
To: John Engelhart <johne at zang.com>
Cc: freebsd-gnats-submit at freebsd.org
Subject: Re: docs/72985: `grep` man page typo/error for --line-buffering / --line-buffered option
Date: Fri, 22 Oct 2004 11:49:29 +0300

 On 2004-10-21 23:46, John Engelhart <johne at zang.com> wrote:
 > >Environment:
 > FreeBSD new.zang.com 5.3-BETA7 FreeBSD 5.3-BETA7 #0:\
 > Sun Oct 17 00:32:33 EDT 2004     \
 > johne at new.zang.com:/usr/src/sys/i386/compile/new  i386
 >
 > >Description:
 > The man page for the command grep has a typo/error in it.
 >
 > The option syntax for "line-buffered" output is specified in the man page as:
 >
 > --line-buffering
 >
 > Whereas the command itself takes (from grep --help, and checked by running)
 >
 >       --line-buffered       flush output on every line
 
 You are right.  Does the following change look ok?
 
 %%%
 Index: grep.1
 ===================================================================
 RCS file: /home/ncvs/src/gnu/usr.bin/grep/grep.1,v
 retrieving revision 1.25
 diff -u -u -r1.25 grep.1
 --- grep.1	4 Jul 2004 10:02:03 -0000	1.25
 +++ grep.1	22 Oct 2004 08:47:28 -0000
 @@ -312,8 +312,9 @@
  This is especially useful for tools like zgrep, e.g.
  .B "gzip -cd foo.gz |grep --label=foo something"
  .TP
 -.BR \-\^\-line-buffering
 -Use line buffering, it can be a performance penality.
 +.BR \-\^\-line-buffered
 +Flush output on every line.
 +Note that this incurs a performance penalty.
  .TP
  .BR \-q ", " \-\^\-quiet ", " \-\^\-silent
  Quiet; do not write anything to standard output.
 %%%



More information about the freebsd-doc mailing list