Subject: Re: bug#39582: --include only works with -r

From: Gary Johnson <[email-masked]>
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