Subject: Re: bug#26832: bug on grep 3.0

From: Norihiro Tanaka <[email-masked]>
Date: Tue, 09 May 2017 08:19:18 +0900

On Mon, 8 May 2017 16:56:31 +0900
Masataka Kawasaki <[email-masked]> wrote:

> I found a bug on grep 3.0 on 64bit cygwin.
> It seems that '\/' before '$' causes probrems.
> 
> grep 2.25(correct)
> >echo rr/| grep '^.*\/$'
> rr/
> >echo rr/| gawk '/^.*\/$/'
> rr/
> >echo rr/| sed -ne '/^.*\/$/p'
> rr/
> 
> grep 3.0(incorrect)
> >echo rr/| grep '^.*\/$'
> >echo rr/| gawk '/^.*\/$/'
> >echo rr/| sed -ne '/^.*\/$/p'
> 
> thanks.

Hi,

$ env LC_ALL=C src/grep --version
grep (GNU grep) 3.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
$ echo rr/ | env LC_ALL=C src/grep '^.*\/$'
rr/
$ echo rr/ | env LC_ALL=ja_JP.utf8 src/grep '^.*\/$'
rr/
$ echo rr/ | env LC_ALL=ja_JP.eucjp src/grep '^.*\/$'
rr/

I think that it is not a bug.

Thanks,
Norihiro