Page MenuHomeFreeBSD

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

Authored by jhb on Aug 9 2024, 6:58 PM.
Tags
None
Referenced Files
F95534067: D46256.diff
Sat, Sep 21, 9:42 AM
Unknown Object (File)
Fri, Sep 20, 2:49 PM
Unknown Object (File)
Tue, Sep 17, 7:16 AM
Unknown Object (File)
Mon, Sep 16, 12:15 PM
Unknown Object (File)
Sat, Sep 14, 2:52 PM
Unknown Object (File)
Tue, Sep 10, 11:30 PM
Unknown Object (File)
Sun, Sep 8, 9:53 AM
Unknown Object (File)
Sun, Sep 8, 7:06 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 58978
Build 55865: arc lint + arc unit

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.