Date: Fri, 22 Oct 2004 08:50:33 GMT From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-doc@FreeBSD.org Subject: Re: docs/72985: `grep` man page typo/error for --line-buffering / --line-buffered option Message-ID: <200410220850.i9M8oXkO007611@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/72985; it has been noted by GNATS. From: Giorgos Keramidas <keramida@freebsd.org> To: John Engelhart <johne@zang.com> Cc: freebsd-gnats-submit@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@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@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. %%%
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410220850.i9M8oXkO007611>