https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280676
Bug ID: 280676
Summary: grep default recursive behavior differs from manpage
Product: Base System
Version: 14.1-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
FreeBSD's `grep(1)` describes that `-p` is the default when using `-R`, i.e.,
that symlinks are *not* followed. However, it seems that actually `-S` is the
default, i.e., symlinks *are* followed (when using only `-R`). Notably, the man
page is internally coherent (both `-p` and `-S` descriptions claim that `-p` is
the default).
I don't know FreeBSD's previous behavior of grep so cannot comment whether it's
the man page that is supposed to be wrong or grep's behavior but they certainly
disagree on the matter.
Bug found on Chimera Linux and verified on FreeBSD 14.1-STABLE which is the
source of Chimera Linux's base utils at the moment.
--
You are receiving this mail because:
You are the assignee for the bug.