Page MenuHomeFreeBSD

bsdgrep(1): Understand rgrep, create rgrep symlink if using bsdgrep
ClosedPublic

Authored by kevans on Mar 22 2017, 11:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 11:53 PM
Unknown Object (File)
Oct 18 2024, 10:46 PM
Unknown Object (File)
Oct 3 2024, 6:19 AM
Unknown Object (File)
Sep 18 2024, 6:43 AM
Unknown Object (File)
Sep 5 2024, 4:07 AM
Unknown Object (File)
Aug 18 2024, 5:26 PM
Unknown Object (File)
Aug 17 2024, 11:55 PM
Unknown Object (File)
Jul 28 2024, 2:34 PM
Subscribers
None

Details

Summary

Create a convenience rgrep symlink for bsdgrep(1) that observes grep -r behavior

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 8476
Build 8777: arc lint + arc unit

Event Timeline

Interesting, the gnugrep package does not install rgrep, but this change seems sensible regardless of whether we install rgrep or not.

This revision is now accepted and ready to land.Mar 22 2017, 11:32 PM

I committed the grep.c part of the change in rS316473. I'm less sure about installing the symlink, but in any case if we add it it should be mentioned in the man page and have a MLINKS entry.

This revision now requires review to proceed.Apr 3 2017, 9:12 PM
kevans edited edge metadata.
  • Amend manpage to mention rgrep, add MLINK for it

I went ahead and updated this, since I don't think it necessarily hurts to go ahead and install rgrep due to:

  • It is only WITH_BSD_GREP (at the moment), so I'm not sure that it hurts much
  • -r is a really commonly used flag
  • rgrep is also really commonly installed on many GNU/Linux distributions, which isn't a good argument in itself but it would allow for a friendly migration for many
This revision is now accepted and ready to land.Apr 4 2017, 5:48 AM
This revision was automatically updated to reflect the committed changes.