aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-08-13 17:53:32 -0500
committerRob Landley <rob@landley.net>2016-08-13 17:53:32 -0500
commit8b685bae21f8753925dbefb8b07b78c47534f943 (patch)
treedaacf7c0953e40b7b59724d8516dc2864fa98d3f /toys
parente98089ab9a4b52664e8baf1168af0ad0b32398ba (diff)
downloadtoybox-8b685bae21f8753925dbefb8b07b78c47534f943.tar.gz
Document deviations from posix for echo.
Diffstat (limited to 'toys')
-rw-r--r--toys/posix/echo.c5
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))