[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sort -b also ignores tabs
From: |
Paul Eggert |
Subject: |
Re: sort -b also ignores tabs |
Date: |
Thu, 29 Dec 2005 13:46:44 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
Thanks, I installed this:
2005-12-29 Paul Eggert <address@hidden>
* doc/coreutils.texi (sort invocation): Clarify that a blank
is a space or a tab.
--- doc/coreutils.texi 17 Dec 2005 10:50:00 -0000 1.302
+++ doc/coreutils.texi 29 Dec 2005 21:45:32 -0000 1.303
@@ -3278,7 +3278,8 @@ so portable shell scripts should specify
@cindex blanks, ignoring leading
@vindex LC_CTYPE
Ignore leading blanks when finding sort keys in each line.
-The @env{LC_CTYPE} locale determines character types.
+By default a blank is a space or a tab, but the @env{LC_CTYPE} locale
+can change this.
@item -d
@itemx --dictionary-order
@@ -3290,7 +3291,8 @@ The @env{LC_CTYPE} locale determines cha
@vindex LC_CTYPE
Sort in @dfn{phone directory} order: ignore all characters except
letters, digits and blanks when sorting.
-The @env{LC_CTYPE} locale determines character types.
+By default letters and digits are those of @acronym{ASCII} and a blank
+is a space or a tab, but the @env{LC_CTYPE} locale can change this.
@item -f
@itemx --ignore-case
@@ -3358,6 +3360,8 @@ by a month name abbreviation, is folded
compared in the order @samp{JAN} < @samp{FEB} < @dots{} < @samp{DEC}.
Invalid names compare low to valid names. The @env{LC_TIME} locale
category determines the month spellings.
+By default a blank is a space or a tab, but the @env{LC_CTYPE} locale
+can change this.
@item -n
@itemx --numeric-sort
@@ -3371,6 +3375,8 @@ digits possibly separated by thousands s
by a decimal-point character and zero or more digits. A string of
no digits is interpreted as @samp{0}. The @env{LC_NUMERIC}
locale specifies the decimal-point character and thousands separator.
+By default a blank is a space or a tab, but the @env{LC_CTYPE} locale
+can change this.
Numeric sort uses what might be considered an unconventional method to
compare strings representing floating point numbers. Rather than first
@@ -3482,6 +3488,9 @@ than @var{size}.
Use character @var{separator} as the field separator when finding the
sort keys in each line. By default, fields are separated by the empty
string between a non-blank character and a blank character.
+By default a blank is a space or a tab, but the @env{LC_CTYPE} locale
+can change this.
+
That is, given the input line @address@hidden foo bar}}, @command{sort} breaks
it
into fields @address@hidden foo}} and @address@hidden bar}}. The field
separator is
not considered to be part of either the field preceding or the field
Re: sort -b also ignores tabs,
Paul Eggert <=