aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/grep.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2024-09-04 19:53:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2024-09-04 19:53:22 +0000
commitfc12c191c087b63e1204fee210ba76082ea40b96 (patch)
tree4e9bc357a3d353a54a5e415d0388eae252c04cc0 /usr.bin/grep/grep.c
parent77eb877714d69ee0279d70eb3331920fba90db95 (diff)
downloadsrc-fc12c191c087b63e1204fee210ba76082ea40b96.tar.gz
src-fc12c191c087b63e1204fee210ba76082ea40b96.zip
grep: Default to -p instead of -S.
This matches the documented behavior in the manpage as well as the default behavior on macOS. PR: 280676 Reported by: Radosław Piliszek <radoslaw.piliszek@gmail.com> Reviewed by: kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D46256
Diffstat (limited to 'usr.bin/grep/grep.c')
-rw-r--r--usr.bin/grep/grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/grep.c b/usr.bin/grep/grep.c
index 9f960f74dbb6..feaf17d7c1e1 100644
--- a/usr.bin/grep/grep.c
+++ b/usr.bin/grep/grep.c
@@ -112,7 +112,7 @@ int binbehave = BINFILE_BIN; /* -aIU: handling of binary files */
int filebehave = FILE_STDIO;
int devbehave = DEV_READ; /* -D: handling of devices */
int dirbehave = DIR_READ; /* -dRr: handling of directories */
-int linkbehave = LINK_READ; /* -OpS: handling of symlinks */
+int linkbehave = LINK_SKIP; /* -OpS: handling of symlinks */
bool dexclude, dinclude; /* --exclude-dir and --include-dir */
bool fexclude, finclude; /* --exclude and --include */