GNU bug report logs - #25513
Issue grepping lines ending with CRLF with --color=auto.

Previous Next

Package: grep;

Reported by: Eric Hoffman <ehoffman <at> positronaccess.com>

Date: Mon, 23 Jan 2017 16:37:01 UTC

Severity: normal

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Hoffman <ehoffman <at> positronaccess.com>
To: "'25513 <at> debbugs.gnu.org'" <25513 <at> debbugs.gnu.org>
Subject: bug#25513: closed (Re: bug#25513: Issue grepping lines ending with CRLF with --color=auto.)
Date: Tue, 24 Jan 2017 12:29:26 +0000
That was something I suspected.  On my system, I taught it was doing the same with 'grep' alone too, but it turned out my default .bashrc setup an alias for 'bash' to ass '--color=auto'.  I do get the same issue if I type...

$ printf 'line%s\r\n' 1 2 3 | grep .

...because of the alias, buy typing...

$printf 'line%s\r\n' 1 2 3 | /bin/grep .

...does not cause issue.

Indeed, it does not cause an issue in a script, as the text is sent through the pipe without color rendering.

So, I was wondering if it was grep or not.

Regards,
Eric


This bug report was last modified 8 years and 113 days ago.

Previous Next


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