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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"