]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Patch from Mike to fix handling of +x.yn.
authorJim Meyering <jim@meyering.net>
Fri, 5 May 1995 04:37:21 +0000 (04:37 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 5 May 1995 04:37:21 +0000 (04:37 +0000)
src/sort.c

index e359bbbc9266bfd350770ae922f506f4ca29e087..9379440b32c7371b716a4d280e0ff8b367dee445 100644 (file)
@@ -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;