Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sort entity list again before giving it to comm(1)
Apparently `holo scan` sorts stuff differently than sort(1). In particular, I see that `holo scan --short` on one of my servers lists file:/etc/munin/munin-node.conf file:/etc/munin/munin.conf in that order, but `holo scan --short | sort` puts it the other way around.
- Loading branch information
58a6627
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting
LC_COLLATE=C
should make the ordering expected/produced by comm(1)/sort(1) match Go's sort ordering. But just piping it through sort(1) is probably more robust, in case there ever is a discrepancy.For the example, I've verified that the ordering disagrees for
LANG=en_US.UTF-8
, and that settingLC_COLLATE=C
for comm resolves the disagreement.