1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

sort: fix debug output for zeros / invalid numbers

We were reporting "no match" when sorting something like "0 ". This is
because we don't distinguish between 0 and invalid lines when sorting.
For debug output we have to get this information back.
This commit is contained in:
Michael Debertol 2021-06-01 18:06:18 +02:00
parent 3625d98fc3
commit 06b3092f5f
9 changed files with 75 additions and 14 deletions

View file

@ -1,3 +1,4 @@
K
844K
981K
11M

View file

@ -1,3 +1,6 @@
K
^ no match for key
_
844K
____
____

View file

@ -9,3 +9,4 @@
844K
981K
13M
K

View file

@ -0,0 +1,5 @@
-.05,
-x
0.abc
0foo
100

View file

@ -0,0 +1,15 @@
-.05,
____
_____
-x
^ no match for key
__
0.abc
__
_____
0foo
_
____
100
___
____

View file

@ -0,0 +1,5 @@
0foo
0.abc
100
-.05,
-x