]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(sort invocation): Clarify how -t works when
authorJim Meyering <jim@meyering.net>
Sat, 2 Dec 2000 14:28:11 +0000 (14:28 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 2 Dec 2000 14:28:11 +0000 (14:28 +0000)
a sort key specifies a range of fields.  From Karl O. Pinc.

doc/textutils.texi

index c48b41f1c2945b28b6dd688fdf2982f1dea70dd4..f9baa9b327592b614c02e3ab9150f4801f48762f 100644 (file)
@@ -2269,7 +2269,9 @@ string between a non-whitespace character and a whitespace character.
 That is, given the input line @w{@samp{ foo bar}}, @code{sort} breaks it
 into fields @w{@samp{ foo}} and @w{@samp{ bar}}.  The field separator is
 not considered to be part of either the field preceding or the field
-following.
+following.  But note that sort fields that extend to the end of the line,
+as @samp{-k 2}, or sort fields consisting of a range, as @samp{-k 2,3},
+retain the field separators present between the endpoints of the range.
 
 @item -T @var{tempdir}
 @opindex -T