Page MenuHomeFreeBSD

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

Authored by emaste on Oct 25 2016, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 1 2024, 7:17 AM
Unknown Object (File)
Oct 1 2024, 5:59 AM
Unknown Object (File)
Oct 1 2024, 3:44 AM
Unknown Object (File)
Sep 28 2024, 1:32 PM
Unknown Object (File)
Sep 5 2024, 8:42 AM
Unknown Object (File)
Sep 4 2024, 11:30 AM
Unknown Object (File)
Aug 22 2024, 8:29 PM
Unknown Object (File)
Aug 21 2024, 10:30 PM
Subscribers

Details

Summary

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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
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