grep -b, --byte-offset returns 0

Jonesy SPAM_TRAP_gmane at jonz.net
Fri Jan 31 21:49:12 UTC 2020


On Sat, 30 Nov 2019 00:13:46 -0000 (UTC), Jonesy via freebsd-questions wrote:
>
> 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
>
> I have just now created a login at bugs.freebsd.org/bugzilla/ 
> and reported this bug there, but I am unsure if I did it all 
> correctly.   :-)

As the OP, I probably should have posted the bugzilla URL for the
archive:
	https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242308

Jonesy
-- 
  Marvin L Jones    | Marvin      | W3DHJ.net  | linux
   38.238N 104.547W |  @ jonz.net | Jonesy     |  FreeBSD
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm



More information about the freebsd-questions mailing list