]> git.ipfire.org Git - thirdparty/coreutils.git/commit
sort: with -h, disallow thousands separator between number and unit
authorKamil Dudka <kdudka@redhat.com>
Mon, 18 Jul 2016 17:04:45 +0000 (19:04 +0200)
committerPádraig Brady <P@draigBrady.com>
Mon, 18 Jul 2016 21:24:26 +0000 (22:24 +0100)
commit0f9fc7b3b9aee1d001ca60de1125e6e714e70ac7
tree87b3a57b2cf165447146a9d9238a8da2cb876239
parentdfbc945a562f870f6647672374c00d4f1ffb6097
sort: with -h, disallow thousands separator between number and unit

* src/sort.c (traverse_raw_number): Accept thousands separator only
if it is immediately followed by a digit.
* tests/misc/sort-h-thousands-sep.sh: Cover the fix for this bug.

Suggested by Pádraig Brady in http://bugs.gnu.org/24015
src/sort.c
tests/misc/sort-h-thousands-sep.sh