GNU bug report logs - #22059
grep -E: unexpected behaviour

Previous Next

Package: grep;

Reported by: Charles <c <at> charlesmatkinson.org>

Date: Mon, 30 Nov 2015 07:23:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Charles <c <at> charlesmatkinson.org>, 22059 <at> debbugs.gnu.org
Subject: bug#22059: grep -E: unexpected behaviour
Date: Mon, 30 Nov 2015 09:27:25 -0800
On 11/29/2015 08:57 PM, Charles wrote:
> Apparently grep silently stops processing when it encounters the invalid UTF-8:

The regular expression "." matches a single character, and ".*" matches 
a string of characters. In your example, there is an encoding error, and 
encoding errors are not characters so "." and ".*" do not match them. I 
don't see any bug here.

> When the input has invalid characters so grep cannot process it, a message could be expected

That's a good suggestion, yes.




This bug report was last modified 9 years and 173 days ago.

Previous Next


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