Mercurial > hg > toybox
diff toys/echo.c @ 294:3de1ea4d6b56
Fix command line option parsing so "echo -xen" actually prints "-xen". Add
echo.test while I'm at it.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 17 May 2008 17:13:26 -0500 |
parents | 163498bf547b |
children | 93223118c813 |
line wrap: on
line diff
--- a/toys/echo.c Mon May 12 01:23:19 2008 -0500 +++ b/toys/echo.c Sat May 17 17:13:26 2008 -0500 @@ -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 @@ 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"