summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-05-05 04:37:21 +0000
committerJim Meyering <jim@meyering.net>1995-05-05 04:37:21 +0000
commit04c2f73f6fbadb5210812d12467a23bbab591691 (patch)
tree42b2653b47da40af881075aae76bfe43e4bdb41d
parentf45ff2cfafdff83ac03c390fc131fd3e4364cdca (diff)
downloadcoreutils-04c2f73f6fbadb5210812d12467a23bbab591691.tar.xz
Patch from Mike to fix handling of +x.yn.
-rw-r--r--src/sort.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sort.c b/src/sort.c
index e359bbbc9..9379440b3 100644
--- a/src/sort.c
+++ b/src/sort.c
@@ -1445,6 +1445,10 @@ set_ordering (s, key, blanktype)
break;
case 'n':
key->numeric = 1;
+ if (blanktype == bl_start || blanktype == bl_both)
+ key->skipsblanks = 1;
+ if (blanktype == bl_end || blanktype == bl_both)
+ key->skipeblanks = 1;
break;
case 'r':
key->reverse = 1;