Mercurial > hg > toybox
view .hgtags @ 293:6baa13382880
Sort was including the trailing comma and getting the order wrong.
(Specifically, it was comparing "sh," with "sha1sum," and putting sha1sum first
in generated/newtoys.h so the binary search wasn't finding sha1sum. Alas, you
can't feed separate beginning and ending delimiters to "sort -t". The fix is
to copy the appropriate field out with sed, duplicate it at the start of the
string where it's easy to compare, and then remove it again with a second
sed after the sort.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 12 May 2008 01:23:19 -0500 |
parents | 4fa9937b0073 |
children | db86f4df58b9 |
line wrap: on
line source
8f8a8ac59c14ffa0428092b4c2714e12065f3492 0.0.1 d2e38cb0b1cd8da4fcbd976c3e598ec110528ce6 0.0.2 a459c6b396454b56eddb5a426c6e0231a41d1de8 0.0.3 104792581cc929a38aee401840cfddaed88f7da1 0.0.4 09ecbdf58c874d073184427b241ed3908976e771 0.0.5