HomeFreeBSD

:rgrep : use atf-check to check the exit code/save the output of grep -r instead

Description

:rgrep : use atf-check to check the exit code/save the output of grep -r instead
of calling grep -r without it, and saving the output to a file

This ensures that any errors thrown via grep -r are caught, not lost, and uses
existing atf-sh idioms for saving files.

Tested with: bsdgrep, gnu grep (base, ports)
Sponsored by: Dell EMC Isilon

Details

Provenance
ngieAuthored on
Parents
rS319001: After r118390, the variable "dmmax" was neither the correct strip size
Branches
Unknown
Tags
Unknown