GNU bug report logs - #26832
bug on grep 3.0

Previous Next

Package: grep;

Reported by: 川崎 正貴 <masataka-kawasaki <at> koeitecmo.co.jp>

Date: Mon, 8 May 2017 15:30:02 UTC

Severity: normal

Tags: notabug

Done: Eric Blake <eblake <at> redhat.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 26832 <at> debbugs.gnu.org (full text, mbox):

From: Norihiro Tanaka <noritnk <at> kcn.ne.jp>
To: <masataka-kawasaki <at> koeitecmo.co.jp>
Cc: 26832 <at> debbugs.gnu.org
Subject: Re: bug#26832: bug on grep 3.0
Date: Tue, 09 May 2017 08:19:18 +0900
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.