Bug 238380 - zgrep: Allow multiple options '-e'
Summary: zgrep: Allow multiple options '-e'
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2019-06-07 10:15 UTC by Ganael LAPLANCHE
Modified: 2019-06-07 11:11 UTC (History)
0 users

See Also:


Attachments
Patch (1.26 KB, text/plain)
2019-06-07 10:15 UTC, Ganael LAPLANCHE
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ganael LAPLANCHE freebsd_committer 2019-06-07 10:15:07 UTC
Created attachment 204872 [details]
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.