Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 07 Jun 2019 10:15:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238380] zgrep: Allow multiple options '-e'
Message-ID:  <bug-238380-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238380

            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@FreeBSD.org
          Reporter: martymac@FreeBSD.org

Created attachment 204872
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D204872&action=
=3Dedit
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238380-227>