Page MenuHomeFreeBSD

grep: Default to -p instead of -S.
ClosedPublic

Authored by jhb on Aug 9 2024, 6:58 PM.
Tags
None
Referenced Files
F147303228: D46256.id142899.diff
Mon, Mar 9, 7:43 PM
F147283087: D46256.id141957.diff
Mon, Mar 9, 4:33 PM
Unknown Object (File)
Sat, Mar 7, 9:43 PM
Unknown Object (File)
Fri, Feb 20, 6:45 PM
Unknown Object (File)
Tue, Feb 17, 4:25 AM
Unknown Object (File)
Sat, Feb 14, 9:30 PM
Unknown Object (File)
Fri, Feb 13, 3:31 AM
Unknown Object (File)
Feb 8 2026, 2:11 AM

Details

Summary

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>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Aug 9 2024, 6:58 PM

It's fine with me, but I note there's a test in contrib/netbsd-tests/usr.bin/grep/t_grep.sh that assumes the default here that will start failing

This revision is now accepted and ready to land.Aug 20 2024, 8:57 PM
This revision was automatically updated to reflect the committed changes.