Page MenuHomeFreeBSD

strings: fix exit status if a file before the last one fails

Authored by emaste on Oct 25 2016, 5:50 PM.
Referenced Files
Unknown Object (File)
Tue, Nov 28, 5:17 PM
Unknown Object (File)
Mon, Nov 27, 10:07 PM
Unknown Object (File)
Sun, Nov 26, 10:38 PM
Unknown Object (File)
Fri, Nov 24, 10:18 PM
Unknown Object (File)
Thu, Nov 23, 7:21 PM
Unknown Object (File)
Tue, Nov 14, 7:51 AM
Unknown Object (File)
Sun, Nov 12, 8:00 AM
Unknown Object (File)
Sun, Nov 12, 6:57 AM



Previously a command like "strings f1 f2 f3" reported the exit status based only on processing the last file.

As with GNU strings, report an error exit status if an error was encountered processing any of the files. While here simplify the exit status handling to just success (0) / failure (1).

Diff Detail

rS FreeBSD src repository - subversion
Lint Not Applicable
Tests Not Applicable

Event Timeline

emaste retitled this revision from to strings: fix exit status if a file before the last one fails.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added subscribers: brooks, dim.
This revision is now accepted and ready to land.Oct 25 2016, 5:56 PM
This revision was automatically updated to reflect the committed changes.

patch looks good to me