summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
committerJim Meyering <jim@meyering.net>1993-10-09 20:44:16 +0000
commit87372cd3aefb4154d9096a491700576d551abd1f (patch)
tree152f4b579d8b9b064d01fbd009795771098e5410 /src/dd.c
parent4ab2d8f53aa7198e41d0e4e0e94055dc1f6e31ba (diff)
downloadcoreutils-87372cd3aefb4154d9096a491700576d551abd1f.tar.xz
merge with 3.8.3e
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dd.c b/src/dd.c
index 88c2c285f..7031479f1 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -1073,13 +1073,13 @@ static void
usage (status)
int status;
{
- fprintf (stderr, "\
+ fprintf (status == 0 ? stdout : stderr, "\
Usage: %s [OPTION]...\n\
\n",
program_name);
if (status == 0)
- fprintf (stderr, "\
+ fprintf (stdout, "\
bs=BYTES force ibs=BYTES and obs=BYTES\n\
cbs=BYTES convert BYTES bytes at a time\n\
conv=KEYWORDS convert the file as per the comma separated keyword list\n\
@@ -1090,8 +1090,8 @@ Usage: %s [OPTION]...\n\
of=FILE write to FILE instead of stdout, don't truncate file\n\
seek=BLOCKS skip BLOCKS obs-sized blocks at start of output\n\
skip=BLOCKS skip BLOCKS ibs-sized blocks at start of input\n\
- --help provide this help\n\
- --version show program version\n\
+ --help display this help and exit\n\
+ --version output version information and exit\n\
\n\
BYTES may be suffixed: by xM for multiplication by M, by c for x1,\n\
by w for x2, by b for x512, by k for x1024. Each KEYWORD may be:\n\