From: Pádraig Brady
Date: Sat, 22 Jun 2013 02:09:01 +0000 (+0100) Subject: doc: clarify that truncate --size represents bytes by default X-Git-Tag: v8.22~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b235223926c23f358df323fab4b368b46d0074af;p=thirdparty%2Fcoreutils.git doc: clarify that truncate --size represents bytes by default * src/truncate.c (usage): Mention that --size is in bytes which is by far the most common usage. * doc/coreutils.texi (truncate invocation): Likewise. Also cross reference the --io-blocks option. Reported in http://bugs.gnu.org/14686 --- diff --git a/doc/coreutils.texi b/doc/coreutils.texi index a325bd058e..ae1081b1ac 100644 --- a/doc/coreutils.texi +++ b/doc/coreutils.texi @@ -11849,6 +11849,7 @@ Base the size of each @var{file} on the size of @var{rfile}. @opindex -s @opindex --size Set or adjust the size of each @var{file} according to @var{size}. +@var{size} is in bytes unless @option{--io-blocks} is specified. @multiplierSuffixesNoBlocks{size} @var{size} may also be prefixed by one of the following to adjust diff --git a/src/truncate.c b/src/truncate.c index 8349cb61ac..d48c346e8e 100644 --- a/src/truncate.c +++ b/src/truncate.c @@ -114,7 +114,7 @@ reads as zero bytes.\n\ "), stdout); fputs (_("\ -r, --reference=RFILE base size on RFILE\n\ - -s, --size=SIZE set or adjust the file size by SIZE\n"), stdout); + -s, --size=SIZE set or adjust the file size by SIZE bytes\n"), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); fputs (VERSION_OPTION_DESCRIPTION, stdout); emit_size_note ();