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)
Wed, Apr 15, 8:21 AM
Unknown Object (File)
Tue, Apr 14, 6:38 PM
Unknown Object (File)
Tue, Apr 14, 10:34 AM
Unknown Object (File)
Tue, Apr 14, 6:53 AM
Unknown Object (File)
Sat, Apr 11, 4:35 PM
Unknown Object (File)
Fri, Apr 10, 10:32 AM
Unknown Object (File)
Fri, Mar 27, 8:39 AM
Unknown Object (File)
Tue, Mar 24, 12:06 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.