GNU bug report logs - #59639
Is this a bug?

Previous Next

Package: grep;

Reported by: Klaus Dittrich <kladit <at> t-online.de>

Date: Sun, 27 Nov 2022 17:53:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Klaus Dittrich <kladit <at> t-online.de>
To: 59639 <at> debbugs.gnu.org
Subject: bug#59639: Is this a bug?
Date: Sun, 27 Nov 2022 18:29:28 +0100
Given file.txt with three lines:

/usr/local/lib/gdk-pixbuf-2.0
empty
/usr/local/lib/libgd2

When I do:

grep gdk file.txt
this results in : /usr/local/lib/gdk-pixbuf-2.0

Which looks ok for me.

When I do:

grep  gdk* file.txt
this results in : /usr/local/lib/gdk-pixbuf-2
                  /usr/local/lib/libgd2.0

This looks like then '*' eats the 'k'
from 'gdk*' and looks for 'gd'' instead of 'gdk*'.
Or equivalent to grep  gd* file.txt
Or equivalent to grep  gd file.txt

grep   gdk.* file.txt
this results in : /usr/local/lib/gdk-pixbuf-2.0

Which looks ok for me.
Either now the point is eaten or the point is correctly replaced by 'any 
character'



grep is grep-3.8 and linked with


Can you please verify if this is a bug or anything in my thinking is 
wrong beacuse I have overlooked something?

-- 
Regards Klaus




This bug report was last modified 2 years and 174 days ago.

Previous Next


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