]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix zgrep --version
authorMateusz Piotrowski <0mp@FreeBSD.org>
Tue, 13 Apr 2021 10:12:53 +0000 (12:12 +0200)
committerMateusz Piotrowski <0mp@FreeBSD.org>
Mon, 26 Apr 2021 13:40:59 +0000 (15:40 +0200)
commit93c6a3232246dd8980cda48adfbe10614665a51f
tree54dd82a7583f491ca2ac205e9e03642be0114c3e
parent2d8adf9cc0000d29d330d2ce06f659b207c0d11b
Fix zgrep --version

"zgrep --version" is expected to print the version information in the
same way as "zgrep -V". However, the case handling the --version flag
is never reached, so "zgrep --version" prints:
    zgrep: missing pattern
instead of:
    grep (BSD grep, GNU compatible) 2.6.0-FreeBSD

Reviewed by: yuripv
Approved by: yuripv (src)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29813

(cherry picked from commit 16e0391f8e2124eb85af984204548cf841648db5)
usr.bin/grep/zgrep.sh