]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Document that "sort -m -o F" might write F before reading all the input.
authorJim Meyering <jim@meyering.net>
Fri, 14 May 2004 07:33:48 +0000 (07:33 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 14 May 2004 07:33:48 +0000 (07:33 +0000)
NEWS

diff --git a/NEWS b/NEWS
index 14c73cb4efae5a97b81a9c911b31de1a4f390979..54248a23c0fc582a970ff97bbfed9d4cd223793c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -20,6 +20,12 @@ GNU coreutils NEWS                                    -*- outline -*-
 
 ** New features
 
+  For efficiency, `sort -m' no longer copies input to a temporary file
+  merely because the input happens to come from a pipe.  As a result,
+  some relatively-contrived examples like `cat F | sort -m -o F - G'
+  are no longer safe, as `sort' might start writing F before `cat' is
+  done reading it.  This problem cannot occur unless `-m' is used.
+
   pwd now works even when run from a working directory whose name
   is longer than PATH_MAX.