summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2010-05-26 09:27:53 +0100
committerPádraig Brady <P@draigBrady.com>2010-05-28 14:23:04 +0100
commit81b7585ad19e1ee0a1a43dda44dd21f11bfd6e86 (patch)
tree9e30d8ce0e19443360810254fe9f22b9a8faec14 /NEWS
parentd4201905ab4ed20ec3a5e2aea528835552e84a1d (diff)
downloadcoreutils-81b7585ad19e1ee0a1a43dda44dd21f11bfd6e86.tar.xz
truncate: support sizes relative to an existing file
* doc/coreutils.texi (truncate invocation): Mention that --reference bases the --size rather than just setting it. * src/truncate.c (usage): Likewise. Also remove the clause describing --size and --reference as being mutually exclusive. (do_truncate): Add an extra parameter to hold the size of a referenced file, and use it if positive. (main): Pass the size of a referenced file to do_truncate(). * tests/misc/truncate-parameters: Adjust for the new combinations. * NEWS: Mention the change Suggested by Richard W.M. Jones
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS1
1 files changed, 1 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 19436fe44..7a294f4a2 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ GNU coreutils NEWS -*- outline -*-
sort -g now uses long doubles for greater range and precision.
+ truncate now supports setting file sizes relative to a reference file.
* Noteworthy changes in release 8.5 (2010-04-23) [stable]