[Bug 237873] Inconsistent behavior between the program and its man page bsdgrep(1)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 13 09:29:05 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237873

            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 at FreeBSD.org
          Reporter: msl0000023508 at gmail.com

The man page bsdgrep(1) says the program won't follow any symbolic links when
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 the
             default.

...

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

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


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

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


More information about the freebsd-bugs mailing list