From 8b685bae21f8753925dbefb8b07b78c47534f943 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 13 Aug 2016 17:53:32 -0500 Subject: Document deviations from posix for echo. --- toys/posix/echo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'toys/posix/echo.c') 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 * * 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)) -- cgit v1.2.3