diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2018-04-25 18:59:29 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2018-04-25 18:59:29 +0000 |
commit | 0967ef2ab886a66a30e2e0089ab74096d187169b (patch) | |
tree | efc2a344d6e9d72a572d7929b1b68a26776f38f0 /usr.bin/grep | |
parent | 5ee52e15dbabdd3bf6bbcf1c31ef583ea4ccbd0d (diff) | |
download | src-test-0967ef2ab886a66a30e2e0089ab74096d187169b.tar.gz src-test-0967ef2ab886a66a30e2e0089ab74096d187169b.zip |
<compress>grep: Special case the -V flag
In case we need version information of the ultimately chosen grep, allowing
`zgrep -V` to operate would be most helpful.
Notes
Notes:
svn path=/head/; revision=333009
Diffstat (limited to 'usr.bin/grep')
-rwxr-xr-x | usr.bin/grep/zgrep.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/usr.bin/grep/zgrep.sh b/usr.bin/grep/zgrep.sh index c8b91fc34a4f0..347d4ee9f7208 100755 --- a/usr.bin/grep/zgrep.sh +++ b/usr.bin/grep/zgrep.sh @@ -106,6 +106,10 @@ do silent=1 shift ;; + -V) + ${grep} -V + exit $? + ;; -*) grep_args="${grep_args} $1" shift |