]> git.ipfire.org Git - thirdparty/coreutils.git/commit
Fix POSIX-conformance bug: "sort -k 3,3.5b" is supposed to skip
authorJim Meyering <jim@meyering.net>
Mon, 26 Apr 2004 15:31:13 +0000 (15:31 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 26 Apr 2004 15:31:13 +0000 (15:31 +0000)
commit41cc9a718acc174c9ed7aaaf59e92c88bd471fda
tree0bab97276029edef0d1be0c32b7f442b33de862c
parent431d6618636655ba3fc33072cbf03e38b79bbf67
Fix POSIX-conformance bug: "sort -k 3,3.5b" is supposed to skip
leading blanks when computing the location of the field end;
it is not supposed to skip trailing blanks.  Solaris 8 "sort"
does conform to POSIX.  Also fix the documentation to clarify
this and related issues.

(limfield): Use skipeblanks, not skipsblanks, to
decode whether to skip leading blanks.
(trailing_blanks): Remove.
(fillbuf, getmonth, keycompare): Don't trim trailing blanks.
src/sort.c