diff options
author | Pádraig Brady <P@draigBrady.com> | 2013-06-22 03:09:01 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-06-22 03:09:01 +0100 |
commit | b235223926c23f358df323fab4b368b46d0074af (patch) | |
tree | 6fb0c5104f61bba8274f07e45ef0a22ca83db0f6 | |
parent | 2bc0281352a894e75dedcf3cc41fcba487e3b74b (diff) | |
download | coreutils-b235223926c23f358df323fab4b368b46d0074af.tar.xz |
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
-rw-r--r-- | doc/coreutils.texi | 1 | ||||
-rw-r--r-- | src/truncate.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi index a325bd058..ae1081b1a 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 8349cb61a..d48c346e8 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 (); |