Page MenuHomeFreeBSD

Fix zgrep --version
ClosedPublic

Authored by 0mp on Apr 17 2021, 7:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 20, 6:03 PM
Unknown Object (File)
Sun, Jan 12, 5:35 PM
Unknown Object (File)
Sun, Jan 12, 5:34 PM
Unknown Object (File)
Sun, Jan 12, 5:34 PM
Unknown Object (File)
Sun, Jan 12, 2:45 PM
Unknown Object (File)
Dec 7 2024, 7:06 PM
Unknown Object (File)
Oct 19 2024, 6:50 PM
Unknown Object (File)
Oct 19 2024, 6:50 PM
Subscribers

Details

Summary

"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

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable