From: Jim Meyering Date: Fri, 5 May 1995 04:37:21 +0000 (+0000) Subject: Patch from Mike to fix handling of +x.yn. X-Git-Tag: textutils-1_12_1~214 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=04c2f73f6fbadb5210812d12467a23bbab591691;p=thirdparty%2Fcoreutils.git Patch from Mike to fix handling of +x.yn. --- diff --git a/src/sort.c b/src/sort.c index e359bbbc92..9379440b32 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;