From b235223926c23f358df323fab4b368b46d0074af Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sat, 22 Jun 2013 03:09:01 +0100 Subject: [PATCH] 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 --- doc/coreutils.texi | 1 + src/truncate.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 (); -- 2.47.2