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)
Sat, Mar 2, 8:10 PM
Unknown Object (File)
Sat, Mar 2, 6:54 PM
Unknown Object (File)
Sat, Mar 2, 6:52 PM
Unknown Object (File)
Feb 8 2024, 6:01 PM
Unknown Object (File)
Jan 31 2024, 4:40 PM
Unknown Object (File)
Jan 30 2024, 8:02 PM
Unknown Object (File)
Jan 19 2024, 5:05 AM
Unknown Object (File)
Dec 27 2023, 5:36 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