bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Jim Meyering
Subject: bug#47649: grep bug report - improper handling of file symlinks with -r option
Date: Sat, 7 Aug 2021 11:19:04 -0700

On Sat, Aug 7, 2021 at 4:43 AM Chris Drake <cryptophoto@gmail.com> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]