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, Sep 30, 1:07 PM
Unknown Object (File)
Tue, Sep 30, 3:18 AM
Unknown Object (File)
Thu, Sep 25, 11:19 PM
Unknown Object (File)
Sep 1 2025, 9:59 PM
Unknown Object (File)
Aug 5 2025, 6:47 PM
Unknown Object (File)
Jul 14 2025, 9:39 AM
Unknown Object (File)
Jul 14 2025, 8:38 AM
Unknown Object (File)
Jul 12 2025, 2:36 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

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

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.