GNU bug report logs - #30652
Empty lines when using color and searching through files with DOS newline

Previous Next

Package: grep;

Reported by: DrSlony <entertheyoni <at> gmail.com>

Date: Wed, 28 Feb 2018 16:00:04 UTC

Severity: wishlist

Merged with 30535

To reply to this bug, email your comments to 30652 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#30652; Package grep. (Wed, 28 Feb 2018 16:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to DrSlony <entertheyoni <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Wed, 28 Feb 2018 16:00:05 GMT) Full text and rfc822 format available.

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

From: DrSlony <entertheyoni <at> gmail.com>
To: bug-grep <at> gnu.org
Subject: Empty lines when using color and searching through files with DOS
 newline
Date: Wed, 28 Feb 2018 12:06:45 +0100
[Message part 1 (text/plain, inline)]
Hello

Today I ran into this very old bug where grep returns empty lines when
grepping through files with DOS-style \r\n newlines.

To reproduce:
grep "foo.*" *.txt

Verify that it does in fact find things:
grep "popup.*" *.bas | od -c

This prints the lines correctly:
grep --color=never "foo.*" *.txt

I found a report of this issue at least from 2009:
http://savannah.gnu.org/bugs/?25539

I'm using GNU grep 3.1.

Kind regards
DrSlony
[Message part 2 (text/html, inline)]

Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Wed, 01 Jan 2020 07:34:01 GMT) Full text and rfc822 format available.

Merged 30535 30652. Request was from Paul Eggert <eggert <at> cs.ucla.edu> to control <at> debbugs.gnu.org. (Wed, 01 Jan 2020 07:34:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-grep <at> gnu.org:
bug#30652; Package grep. (Wed, 01 Jan 2020 07:35:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: DrSlony <entertheyoni <at> gmail.com>
Cc: 30652 <at> debbugs.gnu.org
Subject: Re: Empty lines when using color and searching through files with DOS
 newline
Date: Tue, 31 Dec 2019 23:34:16 -0800
> I found a report of this issue at least from 2009:
> http://savannah.gnu.org/bugs/?25539

This appears to be the same as Bug#30535 <https://bugs.gnu.org/30535> so I have
merged the two bug reports (Bug#30535 and Bug#30652).




This bug report was last modified 5 years and 169 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.