From 1b9cb7ea23473568ca7ec6cdd2983192e2a4e215 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 2 Dec 2000 14:28:11 +0000 Subject: [PATCH] (sort invocation): Clarify how -t works when a sort key specifies a range of fields. From Karl O. Pinc. --- doc/textutils.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/textutils.texi b/doc/textutils.texi index c48b41f..f9baa9b 100644 --- a/doc/textutils.texi +++ b/doc/textutils.texi @@ -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 -- 2.7.4