grep and anchoring
Daniël de Kok
me at danieldk.eu
Tue Jul 12 17:36:37 UTC 2016
On Sun, Jun 26, 2016 at 04:31:20PM +0100, Matthew Seaman wrote:
> You are completely correct -- this is a bug in grep(1) on FreeBSD. In
> all current releases including the upcoming 11.0-RELEASE grep is
> actually GNU grep version 2.1.5. However, the same bug occurs in
> bsdgrep(1):
>
> % echo 1234 1234 1234 | bsdgrep -o '^....'
> 1234
> 123
> 4 12
>
> There is already an open PR about a very similar issue:
>
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201650
FWIW, I took some time to look at the bsdgrep issue tonight and have
attached a fix to the PR above.
With kind regards,
Daniël de Kok
More information about the freebsd-questions
mailing list