summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2004-04-02 18:40:09 +0000
committerotto <otto@openbsd.org>2004-04-02 18:40:09 +0000
commit95dc68c602160a8ed24cbfecf396106eb4e11d61 (patch)
treeda96789059c90ffc0ec85c022ae0e859c99632c3
parentImplement --line-buffered (diff)
downloadwireguard-openbsd-95dc68c602160a8ed24cbfecf396106eb4e11d61.tar.xz
wireguard-openbsd-95dc68c602160a8ed24cbfecf396106eb4e11d61.zip
Document --line-buffered
ok jmc@
-rw-r--r--usr.bin/grep/grep.19
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1
index 92bf5304100..34acdebb9fc 100644
--- a/usr.bin/grep/grep.1
+++ b/usr.bin/grep/grep.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: grep.1,v 1.23 2004/03/15 08:54:27 tedu Exp $
+.\" $OpenBSD: grep.1,v 1.24 2004/04/02 18:40:09 otto Exp $
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -40,6 +40,7 @@
.Op Fl CEFGHILPRSUVZabchilnoqsvwx
.Op Fl -context Ns Op = Ns Ar num
.Op Fl -binary-files Ns = Ns Ar value
+.Op Fl -line-buffered
.Op Fl e Ar pattern
.Op Fl f Ar file
.Op Ar pattern
@@ -229,6 +230,12 @@ do not search binary files;
and
.Ar text ,
treat all files as text.
+.Sm off
+.It Fl Fl line-buffered
+.Sm on
+Force output to be line buffered.
+By default, output is line buffered when standard output is a terminal
+and block buffered otherwise.
.Pp
.El
If no file arguments are specified, the standard input is used.