summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2004-09-28 21:08:48 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2004-09-28 21:08:48 +0000
commitbf28f833269478ae5cf24b67cfc672d5f07630c5 (patch)
treec5d3c6696e4a115979375488458e959efb484400
parentae2f164a5236aa60cb3e19994eeefc1902464078 (diff)
when stdin is searched, -L and -l print `(standard input)', not `-';
from alexander taler (pr #3937);
-rw-r--r--usr.bin/grep/grep.110
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/grep/grep.1 b/usr.bin/grep/grep.1
index 6e1b1f13890..0bf72745bb0 100644
--- a/usr.bin/grep/grep.1
+++ b/usr.bin/grep/grep.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: grep.1,v 1.27 2004/09/28 20:51:15 jmc Exp $
+.\" $OpenBSD: grep.1,v 1.28 2004/09/28 21:08:47 jmc Exp $
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -195,8 +195,8 @@ is case sensitive.
Only the names of files not containing selected lines are written to
standard output.
Pathnames are listed once per file searched.
-If the standard input is searched, the pathname
-.Sq -
+If the standard input is searched, the string
+.Dq (standard input)
is written.
.It Fl l
Only the names of files containing selected lines are written to
@@ -205,8 +205,8 @@ standard output.
will only search a file until a match has been found,
making searches potentially less expensive.
Pathnames are listed once per file searched.
-If the standard input is searched, the pathname
-.Sq -
+If the standard input is searched, the string
+.Dq (standard input)
is written.
.It Fl n
Each output line is preceded by its relative line number in the file,