[Bug 238380] zgrep: Allow multiple options '-e'
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Jun 7 10:15:09 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238380
Bug ID: 238380
Summary: zgrep: Allow multiple options '-e'
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: martymac at FreeBSD.org
Created attachment 204872
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204872&action=edit
Patch
Currently, zgrep only allows a single option -e to be processed :
$ echo -e 'foo\nbar\nbaz' > test.txt
$ gzip test.txt
$ zgrep -e foo -e bar test.txt.gz
zcat: can't stat: -e: No such file or directory
zcat: can't stat: bar: No such file or directory
test.txt.gz:foo
The attached patch allows to pass several options -e as one would do with
standard grep(1) command.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list