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.

Full log


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





This bug report was last modified 4 years and 306 days ago.

Previous Next


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