GNU bug report logs - #26648
What's wrong w/this grep?

Previous Next

Package: grep;

Reported by: "L. A. Walsh" <gnu <at> tlinx.org>

Date: Tue, 25 Apr 2017 07:46:02 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: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "L. A. Walsh" <gnu <at> tlinx.org>
Subject: bug#26648: closed (Re: bug#26648: What's wrong w/this grep?)
Date: Tue, 25 Apr 2017 07:56:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#26648: What's wrong w/this grep?

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 26648 <at> debbugs.gnu.org.

-- 
26648: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26648
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "L. A. Walsh" <gnu <at> tlinx.org>, 26648-done <at> debbugs.gnu.org
Subject: Re: bug#26648: What's wrong w/this grep?
Date: Tue, 25 Apr 2017 00:55:24 -0700
L. A. Walsh wrote:
>>  /usr/bin/grep --color=auto -I -D skip -d skip -exclude-from=EX -P -r xrm
> /usr/bin/grep: xrm: No such file or directory
>>  /usr/bin/grep --version
> /usr/bin/grep (GNU grep) 2.21.31-adf9
>
> How did 'xrm' become a file name?

Because you omitted a "-" before "-exclude", and that caused your pattern to be 
'xclude-from=EX'.

[Message part 3 (message/rfc822, inline)]
From: "L. A. Walsh" <gnu <at> tlinx.org>
To: bug-grep <at> gnu.org
Subject: What's wrong w/this grep?
Date: Tue, 25 Apr 2017 00:45:14 -0700
>  /usr/bin/grep --color=auto -I -D skip -d skip -exclude-from=EX -P -r xrm
/usr/bin/grep: xrm: No such file or directory
>  /usr/bin/grep --version
/usr/bin/grep (GNU grep) 2.21.31-adf9

How did 'xrm' become a file name? 

It happened after I added the "-exclude-from=EX -P -r"
to an alias... but it happens when I use
the binary directly (i.e. no alias).

I was expecting 'xrm' to be a pattern that was searched
for in the files starting at the current directory.

"New" to me -- use of the -exclude-from option.
Of note: EX contains:
*.orig
*.1
*.1.in


Ideas?  Doesn't seem like correct action...






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

Previous Next


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