diff options
author | Rob Landley <rob@landley.net> | 2008-05-17 17:13:26 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-05-17 17:13:26 -0500 |
commit | 1a221d9b4f058d05aa250691c381f0cfeaaeab9e (patch) | |
tree | b85ac9b5c79889e93f3fc9c612ce1524d56c6a5a /toys | |
parent | da5709494710925cf9d35b91ba2690148031b840 (diff) | |
download | toybox-1a221d9b4f058d05aa250691c381f0cfeaaeab9e.tar.gz |
Fix command line option parsing so "echo -xen" actually prints "-xen". Add
echo.test while I'm at it.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/echo.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/toys/echo.c b/toys/echo.c index 8b4d7c58..fda008af 100644 --- a/toys/echo.c +++ b/toys/echo.c @@ -6,7 +6,7 @@ * * See http://www.opengroup.org/onlinepubs/009695399/utilities/echo.html -USE_ECHO(NEWTOY(echo, "+en", TOYFLAG_BIN)) +USE_ECHO(NEWTOY(echo, "+?en", TOYFLAG_BIN)) config ECHO bool "echo" @@ -18,16 +18,16 @@ config ECHO by a newline. -n No trailing newline. - -e Process the following escape sequences: - \\ backslash - \a alert (beep/flash) - \b backspace - \c Stop output here (avoids trailing newline) - \f form feed - \n newline - \r carriage return - \t horizontal tab - \v vertical tab + -e Process the following escape sequences: + \\ backslash + \a alert (beep/flash) + \b backspace + \c Stop output here (avoids trailing newline) + \f form feed + \n newline + \r carriage return + \t horizontal tab + \v vertical tab */ #include "toys.h" |