NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bug in NetBSD grep ?



On Tue, Aug 16, 2022 at 22:40:52 +0200, Marc Baudoin wrote:

> The following command-line:
> 
> echo 00:00: | grep -E '^([0]{2}[:-]){2}$'
> 
> doesn't print anything on NetBSD (9.3) but it prints 00:00: back
> (as it should, unless I made a mistake in my regular expression):
> - on NetBSD with GNU grep from pkgsrc
[...]
> Is there a problem with the grep command shipped with NetBSD?

Hmm, we still have gnu grep as grep, don't we?  Should be obvious from
grep --help.  Or did you build yourself with MKBSDGREP=yes?

Anyway, a quick test on a netbsd-9 VM (a bit older than 9.3) from a
release-9 tree:

  $ echo 00:00: | ./obj/grep -E '^([0]{2}[:-]){2}$'
  00:00:

-uwe


Home | Main Index | Thread Index | Old Index