sort: fix a contradictory --debug warning
authorPádraig Brady <P@draigBrady.com>
Fri, 6 May 2011 07:07:46 +0000 (08:07 +0100)
committerPádraig Brady <P@draigBrady.com>
Fri, 6 May 2011 07:07:46 +0000 (08:07 +0100)
commitebce7bfb1b2e745553043b8d7feb7c2131426fc2
treec51b1d8bc1056cbc58390389d1565db79a7fd7f5
parent9aeffd3fe549116c043b61ec0d593a7d4c004a44
sort: fix a contradictory --debug warning

* src/sort.c (key_warn): `sort -k2,1n --debug` would output
warnings about being both "zero width" and "spanning multiple fields".
Suppress the latter one.
* tests/misc/sort-debug-warn: Add a couple of test cases.
src/sort.c
tests/misc/sort-debug-warn