From 1a221d9b4f058d05aa250691c381f0cfeaaeab9e Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 17 May 2008 17:13:26 -0500 Subject: Fix command line option parsing so "echo -xen" actually prints "-xen". Add echo.test while I'm at it. --- toys/echo.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'toys') 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" -- cgit v1.2.3