Page MenuHomeFreeBSD

Fix zgrep --version
ClosedPublic

Authored by 0mp on Apr 17 2021, 7:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 19 2024, 6:50 PM
Unknown Object (File)
Oct 19 2024, 6:50 PM
Unknown Object (File)
Oct 19 2024, 6:50 PM
Unknown Object (File)
Oct 19 2024, 6:39 PM
Unknown Object (File)
Oct 5 2024, 9:49 AM
Unknown Object (File)
Sep 11 2024, 1:36 PM
Unknown Object (File)
Sep 9 2024, 10:36 AM
Unknown Object (File)
Sep 5 2024, 10:35 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