[Bug 242308] grep -b, --byte-offset returns 0

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sat Nov 30 00:07:37 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242308

            Bug ID: 242308
           Summary: grep -b, --byte-offset returns 0
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: marvin at jonz.net

(My brand new login - first time reporting a bug - apologies if...)

grep'ping for a byte offset always returns 0 for the result.
Searching "FreeBSD Bugzilla – Bug List" shows no other reports.

Ubuntu 16.04:

jonesy at nix5:~$ a='now is the time for all good men to come to the aid of the
party'
jonesy at nix5:~$ echo $a | grep -b -o  good
24:good


FreeBSD 12.1 

[jonz~]a='now is the time for all good men to come to the aid of the party'
[jonz~]echo $a | grep -b -o  good
0:good

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


More information about the freebsd-bugs mailing list