Page MenuHomeFreeBSD

Avoid find -s, use find | sort instead.
ClosedPublic

Authored by imp on Feb 6 2018, 10:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 2, 5:21 PM
Unknown Object (File)
Tue, Jul 2, 4:32 PM
Unknown Object (File)
Mon, Jul 1, 4:31 AM
Unknown Object (File)
Fri, Jun 28, 7:42 PM
Unknown Object (File)
Sat, Jun 22, 5:55 PM
Unknown Object (File)
Mar 22 2024, 9:31 PM
Unknown Object (File)
Mar 22 2024, 8:20 PM
Unknown Object (File)
Mar 22 2024, 8:20 PM
Subscribers

Details

Summary

find -s was introduced to make the metalog more
deterministic. However, find -s is not portable. find | sort is
portable and accomplishes the same goals, even if it isn't
pedantically the same. TZS is the same before / after the change so
any fussy differences between the two are moot and there won't be
METALOG churn across this change.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 14824
Build 14941: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Feb 6 2018, 10:12 PM

Might be wroth adding a comment that find -s is not portable, to discourage someone from changing it back to remove the extra exec as an optimization.

env LC_ALL=C sort, for great justice

This revision now requires review to proceed.Feb 6 2018, 10:30 PM

LGTM although I still think a comment is warranted

This revision is now accepted and ready to land.Feb 6 2018, 10:43 PM

Overlooked emaste's comment suggestion, which I like...

This revision now requires review to proceed.Feb 6 2018, 11:08 PM
This revision was not accepted when it landed; it landed in state Needs Review.Feb 6 2018, 11:12 PM
This revision was automatically updated to reflect the committed changes.