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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eric Blake <eblake <at> redhat.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#26832: closed (bug on grep 3.0)
Date: Wed, 10 May 2017 17:40:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 10 May 2017 12:38:58 -0500
with message-id <0b8a4bdd-7087-4327-0573-e0923d676383 <at> redhat.com>
and subject line Re: bug#26832: bug on grep 3.0
has caused the debbugs.gnu.org bug report #26832,
regarding bug on grep 3.0
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
26832: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26832
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: 川崎 正貴 <masataka-kawasaki <at> koeitecmo.co.jp>
To: bug-grep <at> gnu.org
Subject: bug on grep 3.0
Date: Mon, 8 May 2017 16:56:31 +0900
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.



[Message part 3 (message/rfc822, inline)]
From: Eric Blake <eblake <at> redhat.com>
To: 川崎 正貴 <masataka-kawasaki <at> koeitecmo.co.jp>,
 Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 26832-done <at> debbugs.gnu.org
Subject: Re: bug#26832: bug on grep 3.0
Date: Wed, 10 May 2017 12:38:58 -0500
[Message part 4 (text/plain, inline)]
tag 26832 notabug
thanks

On 05/10/2017 03:02 AM, 川崎 正貴 wrote:

> 
> BTW, I realized follows.
> Incorrect outputs of grep are output only on command prompt of Windows.
> Correct results are output on console of cygwin.

Then this is an issue in how cygwin programs handle their arguments when
invoked from a native windows program, and/or a factor of the (weird)
quoting rules in use by the Windows native command shell (which are NOT
AT ALL like normal POSIX shell quoting rules), and nothing to do with
upstream grep. You'll probably have better results posting your question
on the cygwin mailing list.

As such, I'm taking the liberty to close this in the upstream database,
as there's nothing we can do here to change behavior.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

[signature.asc (application/pgp-signature, attachment)]

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.