GNU bug report logs - #39582
--include only works with -r

Previous Next

Package: grep;

Reported by: Fernando Roa <froao <at> unal.edu.co>

Date: Wed, 12 Feb 2020 21:30: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 39582 in the body.
You can then email your comments to 39582 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#39582; Package grep. (Wed, 12 Feb 2020 21:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fernando Roa <froao <at> unal.edu.co>:
New bug report received and forwarded. Copy sent to bug-grep <at> gnu.org. (Wed, 12 Feb 2020 21:30:03 GMT) Full text and rfc822 format available.

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

From: Fernando Roa <froao <at> unal.edu.co>
To: bug-grep <at> gnu.org
Subject: --include only works with -r
Date: Wed, 12 Feb 2020 17:27:48 -0300
[Message part 1 (text/plain, inline)]
this does not work
grep yvertohor --include={*.R,*.Rmd}

workaround:
use the -r  flag when using --include

system: ubuntu

-- 
Fernando Roa
[Message part 2 (text/html, inline)]

Information forwarded to bug-grep <at> gnu.org:
bug#39582; Package grep. (Wed, 12 Feb 2020 22:04:02 GMT) Full text and rfc822 format available.

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

From: Gary Johnson <garyjohn <at> spocom.com>
To: bug-grep <at> gnu.org
Subject: Re: bug#39582: --include only works with -r
Date: Wed, 12 Feb 2020 13:47:04 -0800
On 2020-02-12, Fernando Roa wrote:
> this does not work
> grep yvertohor --include={*.R,*.Rmd}

Did you mean to follow that with an asterisk:

    grep yvertohor --include={*.R,*.Rmd} *

Otherwise, grep is waiting for text to appear on stdin.  Without -r,
you have to give grep a list of file(s) to search.  This is stated
in the second paragraph of the man page DESCRIPTION.

You could also have used

    grep yvertohor *.R *.Rmd

> workaround:
> use the -r  flag when using --include
> 
> system: ubuntu

Regards,
Gary





Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Mon, 21 Sep 2020 19:14:02 GMT) Full text and rfc822 format available.

Notification sent to Fernando Roa <froao <at> unal.edu.co>:
bug acknowledged by developer. (Mon, 21 Sep 2020 19:14:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: 39582-done <at> debbugs.gnu.org
Subject: --include only works with -r
Date: Mon, 21 Sep 2020 12:12:58 -0700
As this does not appear to be a grep bug I'm closing the bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 20 Oct 2020 11:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 181 days ago.

Previous Next


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