Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Nov 2019 00:07:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 242308] grep -b, --byte-offset returns 0
Message-ID:  <bug-242308-227@https.bugs.freebsd.org/bugzilla/>

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

            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@FreeBSD.org
          Reporter: marvin@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 =E2=80=93 Bug List" shows no other reports.

Ubuntu 16.04:

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


FreeBSD 12.1=20

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

--=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-242308-227>