start:debugging:linux
Differences
This shows you the differences between two versions of the page.
Last revisionBoth sides next revision | |||
start:debugging:linux [2022/05/19 18:57] – created rodolico | start:debugging:linux [2022/06/01 21:46] – rodolico | ||
---|---|---|---|
Line 13: | Line 13: | ||
/ | / | ||
+ | |||
+ | ===== sort gives unexpected results ===== | ||
+ | |||
+ | Ran into a problem on Devuan (Debian) Linux where sort did not give expected results. | ||
+ | |||
+ | INPUT: | ||
+ | <code text f.dat> | ||
+ | 02-175CB:D | ||
+ | 022C11EE:D | ||
+ | 02-2D270:D | ||
+ | </ | ||
+ | |||
+ | <code bash> | ||
+ | < | ||
+ | 02-175CB:D | ||
+ | 022C11EE:D | ||
+ | 02-2D270:D | ||
+ | </ | ||
+ | |||
+ | Run under FreeBSD and also <code bash> | ||
+ | < | ||
+ | 02-175CB:D | ||
+ | 02-2D270:D | ||
+ | 022C11EE:D | ||
+ | </ | ||
+ | Which I expected. | ||
+ | |||
+ | Under Linux, you can get the same results by setting the collate first: <code bash> | ||
+ | |||
+ | I tracked this down from a similar problem using //ls// on Linux. See https:// | ||
+ | |||
===== Links ===== | ===== Links ===== | ||
- | * https:// | + | |
+ | * https:// |