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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 26648 in the body.
You can then email your comments to 26648 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-grep <at> gnu.org:
bug#26648; Package grep. (Tue, 25 Apr 2017 07:46:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "L. A. Walsh" <gnu <at> tlinx.org>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Tue, 25 Apr 2017 07:46:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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...







Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 25 Apr 2017 07:56:01 GMT) Full text and rfc822 format available.

Notification sent to "L. A. Walsh" <gnu <at> tlinx.org>:
bug acknowledged by developer. (Tue, 25 Apr 2017 07:56:01 GMT) Full text and rfc822 format available.

Message #10 received at 26648-done <at> debbugs.gnu.org (full text, mbox):

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'.




Information forwarded to bug-grep <at> gnu.org:
bug#26648; Package grep. (Tue, 25 Apr 2017 07:59:02 GMT) Full text and rfc822 format available.

Message #13 received at 26648 <at> debbugs.gnu.org (full text, mbox):

From: Zev Weiss <zev <at> bewilderbeest.net>
To: "L. A. Walsh" <gnu <at> tlinx.org>
Cc: 26648 <at> debbugs.gnu.org
Subject: Re: bug#26648: What's wrong w/this grep?
Date: Tue, 25 Apr 2017 02:58:36 -0500
On Tue, Apr 25, 2017 at 02:45:14AM CDT, 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?
>
>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...
>

Perhaps '--exclude-from' rather than '-exclude-from'?





Information forwarded to bug-grep <at> gnu.org:
bug#26648; Package grep. (Tue, 25 Apr 2017 18:55:02 GMT) Full text and rfc822 format available.

Message #16 received at 26648-done <at> debbugs.gnu.org (full text, mbox):

From: L A Walsh <gnu <at> tlinx.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 26648-done <at> debbugs.gnu.org
Subject: Re: bug#26648: What's wrong w/this grep?
Date: Tue, 25 Apr 2017 11:54:30 -0700

Paul Eggert wrote:
>
> Because you omitted a "-" before "-exclude", and that caused your 
> pattern to be 'xclude-from=EX'.
Dang -- confused w/the file find util, which I was also using...*sigh*...

_Thanks_ & sorry for the bother... I had a feeling it
was something I did, (note I didn't call it a bug! ;-))...

linda




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 24 May 2017 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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