freebsd-dev/usr.bin/grep
Kyle Evans 24a656c291 bsdgrep: Allow "-" to be passed to -f to mean "standard input"
A version of this patch was originally sent to me by se@, matching behavior
from newer versions of GNU grep.

While there have been some differences of opinion on whether stdin should be
closed or not after depleting it in process of -f, I've opted to leave stdin
open and just let the later matching stuff fail and result in a no-match.
I'm not married to the current behavior- it was generally chosen since we
are adopting this in particular from GNU grep, and I would like to stay
consistent without a strong argument to the contrary. The current behavior
isn't technically wrong, it's just fairly unfriendly to the developer-user
of grep that may not realize their usage is trivially invalid.

Submitted by:	se
2018-05-08 03:53:46 +00:00
..
nls bsdgrep: Update NLS catalogs after r332995 2018-04-25 15:41:50 +00:00
tests grep test: Fix copyright notice 2017-12-03 02:23:29 +00:00
file.c Remove compression support from bsdgrep 2018-04-25 14:40:15 +00:00
grep.1 bsdgrep: Allow "-" to be passed to -f to mean "standard input" 2018-05-08 03:53:46 +00:00
grep.c bsdgrep: Allow "-" to be passed to -f to mean "standard input" 2018-05-08 03:53:46 +00:00
grep.h bsdgrep: annihilate our in-tree TRE, previously disabled by default 2018-05-04 03:13:25 +00:00
Makefile bsdgrep: annihilate our in-tree TRE, previously disabled by default 2018-05-04 03:13:25 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
queue.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
util.c bsdgrep: annihilate our in-tree TRE, previously disabled by default 2018-05-04 03:13:25 +00:00
zgrep.1 Use a script wrapper for <compress>grep 2018-04-25 13:23:58 +00:00
zgrep.sh zgrep(1): Note that -r/-R are not currently supported. 2018-05-03 02:56:13 +00:00