From: Jim Meyering Date: Fri, 14 May 2004 07:33:48 +0000 (+0000) Subject: Document that "sort -m -o F" might write F before reading all the input. X-Git-Tag: v5.3.0~1559 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f64a45d11280dab075ce04344375e39a15f86602;p=thirdparty%2Fcoreutils.git Document that "sort -m -o F" might write F before reading all the input. --- diff --git a/NEWS b/NEWS index 14c73cb4ef..54248a23c0 100644 --- 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.