diff options
author | Rob Landley <rob@landley.net> | 2016-08-13 17:53:32 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-08-13 17:53:32 -0500 |
commit | 8b685bae21f8753925dbefb8b07b78c47534f943 (patch) | |
tree | daacf7c0953e40b7b59724d8516dc2864fa98d3f /toys | |
parent | e98089ab9a4b52664e8baf1168af0ad0b32398ba (diff) | |
download | toybox-8b685bae21f8753925dbefb8b07b78c47534f943.tar.gz |
Document deviations from posix for echo.
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/echo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toys/posix/echo.c b/toys/posix/echo.c index 45890dc4..33de6781 100644 --- a/toys/posix/echo.c +++ b/toys/posix/echo.c @@ -3,6 +3,11 @@ * Copyright 2007 Rob Landley <rob@landley.net> * * See http://opengroup.org/onlinepubs/9699919799/utilities/echo.html + * + * Deviations from posix: we parse command line options, as Linux has + * consistently done since 1992. Posix defaults -e to on, we require -e. + * We also honor -- to _stop_ option parsing (bash doesn't, we go with + * consistency over compatibility here). USE_ECHO(NEWTOY(echo, "^?en", TOYFLAG_BIN)) |