Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jan 2020 21:48:59 -0000 (UTC)
From:      Jonesy <SPAM_TRAP_gmane@jonz.net>
To:        freebsd-questions@freebsd.org
Subject:   Re: grep -b, --byte-offset returns 0
Message-ID:  <slrnr3986b.kbt.SPAM_TRAP_gmane@vps.jonz.net>
References:  <slrnqu3d1q.40b.SPAM_TRAP_gmane@vps.jonz.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@nix5:~$ a='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 
>
> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnr3986b.kbt.SPAM_TRAP_gmane>