From f977e4b5cf606610471bf828c300bbfc43e8715e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 13 Dec 1997 22:49:33 +0000 Subject: Change --help output to tell the truth: that for of=FILE, FILE *is* truncated. Reported by Miles Bader. Remove incomplete, usage-like comment at top of file. --- src/dd.c | 38 +------------------------------------- 1 file changed, 1 insertion(+), 37 deletions(-) diff --git a/src/dd.c b/src/dd.c index 9b680ecc7..4e36c9734 100644 --- a/src/dd.c +++ b/src/dd.c @@ -17,42 +17,6 @@ /* Written by Paul Rubin, David MacKenzie, and Stuart Kemp. */ -/* Options: - - Numbers can be followed by a multiplier: - b=512, c=1, k=1024, w=2, xm=number m - - if=FILE Read from FILE instead of stdin. - of=FILE Write to FILE instead of stdout; don't - truncate FILE. - ibs=BYTES Read BYTES bytes at a time. - obs=BYTES Write BYTES bytes at a time. - bs=BYTES Override ibs and obs. - cbs=BYTES Convert BYTES bytes at a time. - skip=BLOCKS Skip BLOCKS ibs-sized blocks at - start of input. - seek=BLOCKS Skip BLOCKS obs-sized blocks at - start of output. - count=BLOCKS Copy only BLOCKS input blocks. - conv=CONVERSION[,CONVERSION...] - - Conversions: - ascii Convert EBCDIC to ASCII. - ebcdic Convert ASCII to EBCDIC. - ibm Convert ASCII to alternate EBCDIC. - block Pad newline-terminated records to size of - cbs, replacing newline with trailing spaces. - unblock Replace trailing spaces in cbs-sized block - with newline. - lcase Change upper case characters to lower case. - ucase Change lower case characters to upper case. - swab Swap every pair of input bytes. - Unlike the Unix dd, this works when an odd - number of bytes are read. - noerror Continue after read errors. - sync Pad every input block to size of ibs with - trailing NULs. */ - #include #include @@ -1151,7 +1115,7 @@ Copy a file, converting and formatting according to the options.\n\ ibs=BYTES read BYTES bytes at a time\n\ if=FILE read from FILE instead of stdin\n\ obs=BYTES write BYTES bytes at a time\n\ - of=FILE write to FILE instead of stdout, don't truncate file\n\ + of=FILE write to FILE instead of stdout\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 display this help and exit\n\ -- cgit v1.2.3-70-g09d2