]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
'sort F -o F' no longer needs to copy F.
authorJim Meyering <jim@meyering.net>
Tue, 13 Mar 2001 08:29:01 +0000 (08:29 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 Mar 2001 08:29:01 +0000 (08:29 +0000)
doc/textutils.texi

index 5713a4a7fd8930394bdd2a39253fec5bb1a28102..bea4b19a1802d290c4f127995c2d999ed3aed5d6 100644 (file)
@@ -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