Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2020 19:42:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 247126] zgrep(1) does not handle -f FILE correctly
Message-ID:  <bug-247126-227-YaAFb7dcol@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-247126-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-247126-227@https.bugs.freebsd.org/bugzilla/>

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

Craig Leres <leres@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #215407|0                           |1
        is obsolete|                            |

--- Comment #2 from Craig Leres <leres@freebsd.org> ---
Created attachment 215428
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D215428&action=
=3Dedit
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.

--=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-247126-227-YaAFb7dcol>