Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Aug 2024 18:31:01 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 280676] grep default recursive behavior differs from manpage
Message-ID:  <bug-280676-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280676

            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: bugs@FreeBSD.org
          Reporter: radoslaw.piliszek@gmail.com

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 t=
he
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 certa=
inly
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-280676-227>