aboutsummaryrefslogtreecommitdiff
path: root/coreutils/echo.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-13 18:49:43 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-04-13 18:49:43 +0000
commit9c24ee20ab75047beebcf1a5766fdbdbd82ba662 (patch)
tree61d03a8d473f2d253c80f5bb3acc13d488351250 /coreutils/echo.c
parent243153c09634fdbd0ac39af35677a4a7929e9c64 (diff)
downloadbusybox-w32-9c24ee20ab75047beebcf1a5766fdbdbd82ba662.tar.gz
busybox-w32-9c24ee20ab75047beebcf1a5766fdbdbd82ba662.tar.bz2
busybox-w32-9c24ee20ab75047beebcf1a5766fdbdbd82ba662.zip
More doc updates for BusyBox, with fixes to apps for bugs revealed
while trying to write docs . :-) -Erik git-svn-id: svn://busybox.net/trunk/busybox@451 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/echo.c')
-rw-r--r--coreutils/echo.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/coreutils/echo.c b/coreutils/echo.c
index 91f17aa0f..2405d0ae1 100644
--- a/coreutils/echo.c
+++ b/coreutils/echo.c
@@ -25,6 +25,14 @@
25#include "internal.h" 25#include "internal.h"
26#include <stdio.h> 26#include <stdio.h>
27 27
28static const char uname_usage[] =
29 "echo [-neE] [ARG ...]\n\n"
30 "Prints the specified ARGs to stdout\n\n"
31 "Options:\n"
32 "\t-n\tsuppress trailing newline\n"
33 "\t-e\tinterpret backslash-escaped characters (i.e. \\t=tab etc)\n"
34 "\t-E\tdisable interpretation of backslash-escaped characters\n";
35
28extern int 36extern int
29echo_main(int argc, char** argv) 37echo_main(int argc, char** argv)
30{ 38{
@@ -45,6 +53,9 @@ echo_main(int argc, char** argv)
45 } else if (strcmp(p, "-E")==0) { 53 } else if (strcmp(p, "-E")==0) {
46 eflag = 0; 54 eflag = 0;
47 } 55 }
56 else if (strncmp(p, "--", 2)==0) {
57 usage( uname_usage);
58 }
48 else break; 59 else break;
49 ap++; 60 ap++;
50 } 61 }