summaryrefslogtreecommitdiff
path: root/tests/misc/sort-debug-warn
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-05-22 14:19:50 +0100
committerPádraig Brady <P@draigBrady.com>2010-05-24 12:12:24 +0100
commit63761c027c6facf80d78834f9f1ee02139b116fe (patch)
tree4e87127d5af34a356a4807b4d63e55cbdf5f6dce /tests/misc/sort-debug-warn
parentfdff32e1834f88363854cefaba10150bff066607 (diff)
downloadcoreutils-63761c027c6facf80d78834f9f1ee02139b116fe.tar.xz
sort: adjust the leading blanks --debug warning
* src/sort.c (key_warnings): Always warn about significant leading blanks when character offsets are specified, unless they key is possibly a line offset, i.e. of the form -k1.x,1.y. Also suppress this warning if the user could be sorting right aligned indexes.
Diffstat (limited to 'tests/misc/sort-debug-warn')
-rwxr-xr-xtests/misc/sort-debug-warn5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/misc/sort-debug-warn b/tests/misc/sort-debug-warn
index 3a7b01a0c..1ba6c0479 100755
--- a/tests/misc/sort-debug-warn
+++ b/tests/misc/sort-debug-warn
@@ -26,7 +26,6 @@ fi
cat <<\EOF > exp
sort: using simple byte comparison
sort: key 1 has zero width and will be ignored
-sort: leading blanks are significant in key 1; consider also specifying `b'
sort: using simple byte comparison
sort: options `-bghMRrV' are ignored
sort: using simple byte comparison
@@ -35,14 +34,12 @@ sort: option `-r' only applies to last-resort comparison
sort: using simple byte comparison
sort: option `-r' only applies to last-resort comparison
sort: using simple byte comparison
-sort: leading blanks are significant in key 2; consider also specifying `b'
sort: options `-bg' are ignored
sort: using simple byte comparison
sort: using simple byte comparison
sort: option `-b' is ignored
sort: using simple byte comparison
sort: using simple byte comparison
-sort: leading blanks are significant in key 1; consider also specifying `b'
sort: using simple byte comparison
sort: leading blanks are significant in key 1; consider also specifying `b'
sort: using simple byte comparison
@@ -84,7 +81,7 @@ sort: option `-b' is ignored
sort: option `-r' only applies to last-resort comparison
EOF
-sort --debug -rb -k2n +2 -1b /dev/null 2>out
+sort --debug -rb -k2n +2.2 -1b /dev/null 2>out
compare exp out || fail=1