Subject: bug#47649: grep bug report - improper handling of file symlinks with -r option

From: Jim Meyering <[email-masked]>
Date: Sat, 7 Aug 2021 11:19:04 -0700

On Sat, Aug 7, 2021 at 4:43 AM Chris Drake <[email-masked]> wrote:
> Looks like the -r and -R got mixed up?
>
> What is now the "-R" behaves the same way as the original "-r", and now the new "-r" behaves differently.
>
> For backwards-compatibility, the original behaviour should have been preserved, and the new feature assigned to a new switch ?

Hi Chris,

There was no mix-up, and this is not new.
This was a deliberate decision that dates back to 2012 (first release
with it was 2.12).
Sorry this causes you difficulty, but at least one other grep
implementation has -r and -R options that work this way:

https://www.freebsd.org/cgi/man.cgi?query=grep