From: Jim Meyering Date: Tue, 13 Mar 2001 08:29:01 +0000 (+0000) Subject: 'sort F -o F' no longer needs to copy F. X-Git-Tag: FILEUTILS-4_0_42~49 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=25a9e171a2602120c53e8ab7787fa7cd33482f3e;p=thirdparty%2Fcoreutils.git 'sort F -o F' no longer needs to copy F. --- diff --git a/doc/textutils.texi b/doc/textutils.texi index 5713a4a7fd..bea4b19a18 100644 --- a/doc/textutils.texi +++ b/doc/textutils.texi @@ -2256,9 +2256,9 @@ Other options are: @opindex -o @cindex overwriting of input, allowed Write output to @var{output-file} instead of standard output. -If @var{output-file} is one of the input files, @code{sort} copies -it to a temporary file before sorting and writing the output to -@var{output-file}. +If necessary, @command{sort} reads input before opening +@var{output-file}, so you can safely sort a file in place by using +commands like @code{sort F -o F} and @code{cat F | sort -o F}. @item -S @var{size} @opindex -S