GNU bug report logs - #26322
grep '*' VS grep -E '*'

Previous Next

Package: grep;

Reported by: Julien Denis <ju.denis <at> gmail.com>

Date: Fri, 31 Mar 2017 14:48:03 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: Julien Denis <ju.denis <at> gmail.com>
To: 26322 <at> debbugs.gnu.org
Subject: bug#26322: grep '*' VS grep -E '*'
Date: Fri, 31 Mar 2017 15:37:38 +0200
Hello,

Assuming that "textfile" is a regular non empty text file, is it
normal that grep '*' textfile returns nothing but grep -E '*' textfile
returns all the lines ?
I got this using Debian 7.1 stable and so grep is version 2.20.
Would a newer grep version resolve this or is it not a bug (but a
valid behavior of the star character in ERE) ?

Thanks!
Julien




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

Previous Next


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