Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2019 09:29:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 237873] Inconsistent behavior between the program and its man page bsdgrep(1)
Message-ID:  <bug-237873-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 237873
           Summary: Inconsistent behavior between the program and its man
                    page bsdgrep(1)
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: msl0000023508@gmail.com

The man page bsdgrep(1) says the program won't follow any symbolic links wh=
en
performing recursive search (with option '-r' or '-R').
But it follows! (try it!)

>From the man page:

     -O      If -R is specified, follow symbolic links only if they were
             explicitly listed on the command line.  The default is not to
             follow symbolic links.

...

     -p      If -R is specified, no symbolic links are followed.  This is t=
he
             default.

...

     -R, -r, --recursive
             Recursively search subdirectories listed.

     -S      If -R is specified, all symbolic links are followed.  The defa=
ult
             is not to follow symbolic links.


This seems indicating that the option '-p' was the default, however the act=
ual
default was '-S', according to the source code
(https://svnweb.freebsd.org/base/head/usr.bin/grep/grep.c?revision=3D334806=
&view=3Dmarkup#l126).

--=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-237873-227>