emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59639: closed (Is this a bug?)


From: GNU bug Tracking System
Subject: bug#59639: closed (Is this a bug?)
Date: Sun, 27 Nov 2022 18:13:02 +0000

Your message dated Sun, 27 Nov 2022 10:11:57 -0800
with message-id <1f4ee14e-a6cf-4a6b-dcbe-5da0a20a5691@cs.ucla.edu>
and subject line Re: bug#59639: Is this a bug?
has caused the debbugs.gnu.org bug report #59639,
regarding Is this a bug?
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
59639: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59639
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Is this a bug? Date: Sun, 27 Nov 2022 18:29:28 +0100 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0
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



--- End Message ---
--- Begin Message --- Subject: Re: bug#59639: Is this a bug? Date: Sun, 27 Nov 2022 10:11:57 -0800 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2
On 2022-11-27 09:29, Klaus Dittrich wrote:
grepĀ  gdk* file.txt

You should quote the pattern for the shell, e.g.:

grep 'gdk*' file.txt

You can see what's going on by using the shell command 'set -x' before running 'grep'.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]