GNU bug report logs -
#26832
bug on grep 3.0
Previous Next
Full log
Message #8 received at 26832 <at> debbugs.gnu.org (full text, mbox):
On Mon, 8 May 2017 16:56:31 +0900
Masataka Kawasaki <masataka-kawasaki <at> koeitecmo.co.jp> 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
This bug report was last modified 8 years and 10 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.