[Bug 247126] zgrep(1) does not handle -f FILE correctly
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jun 10 19:42:12 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247126
Craig Leres <leres at freebsd.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #215407|0 |1
is obsolete| |
--- Comment #2 from Craig Leres <leres at freebsd.org> ---
Created attachment 215428
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=215428&action=edit
revised patch
I see now the wrapper script fails when the flags are not discrete:
# Works
% fgrep -we RELEASE /etc/motd
FreeBSD 12.1-RELEASE-p3 GENERIC
# Fails
% zfgrep -we RELEASE /etc/motd
grep: RELEASE: No such file or directory
This updated patch takes advantage of the fact that "extra argument" flags must
come last. It also lets "-e PATTERN" pass through to *grep with other flags
instead of moving the pattern to the end.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list