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: b...@freebsd.org
          Reporter: msl0000023...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to