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

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

[debbugs-tracker] bug#27783: closed (display help instead of pattern sea


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#27783: closed (display help instead of pattern search)
Date: Fri, 21 Jul 2017 15:09:04 +0000

Your message dated Fri, 21 Jul 2017 10:07:58 -0500
with message-id <address@hidden>
and subject line Re: bug#27783: display help instead of pattern search
has caused the debbugs.gnu.org bug report #27783,
regarding display help instead of pattern search
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
27783: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27783
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: display help instead of pattern search Date: Fri, 21 Jul 2017 07:46:20 +0000

Hello,

 

Grep v2.6.3

 

> grep -ri "--help" .

 

Displays the help message instead of searching for the requested pattern.

Same behavior for the pattern “--version”

 

Matthieu P.



CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium.

--- End Message ---
--- Begin Message --- Subject: Re: bug#27783: display help instead of pattern search Date: Fri, 21 Jul 2017 10:07:58 -0500 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
tag 27783 notabug
thanks

On 07/21/2017 02:46 AM, PAYET Matthieu -EXT wrote:
> Hello,
> 
> Grep v2.6.3
> 
>> grep -ri "--help" .
> 
> Displays the help message instead of searching for the requested pattern.

Because you didn't tell grep the options were over.  You want:

grep -ri -- --help

> Same behavior for the pattern "--version"

Ditto for any other pattern with a leading '-' - use -- to tell grep
that you are done with option parsing and to treat the next argument as
a pattern or filename.

> CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
> privileged.

Sorry, but your disclaimer is unenforceable on publicly-archived lists.
Please consider using a personal address to avoid spamming us with your
employer's legalese.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

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