Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jul 2017 13:35:51 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 220924] bsdgrep(1) unexpectedly stops processing command line arguments
Message-ID:  <bug-220924-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 220924
           Summary: bsdgrep(1) unexpectedly stops processing command line
                    arguments
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: jocki84@googlemail.com

When searching for an empty expression '' with bsdgrep(1), processing of fi=
les
given on the command line stops when an empty file is encountered.

$ touch a
$ echo b > b
$ bsdgrep '' a b
$=20

The output is empty, while the expected output is a line containing 'b:b'.

This does not occur when passing the file names in the opposite order:

$ bsdgrep '' b a
b:b
$=20

Note that grep(1) (GNU grep) behaves as expected.

$ grep '' a b
b:b
$ grep '' b a
b:b
$

--=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-220924-8>