From c9d2c99a98be551e7eafe9b448ce35424fc35bb6 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 19 Aug 2020 19:00:20 +0200 Subject: [PATCH] Document that echo takes `--` [ci skip] --- doc_src/cmds/echo.rst | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/doc_src/cmds/echo.rst b/doc_src/cmds/echo.rst index 71f1f3818..373e1990f 100644 --- a/doc_src/cmds/echo.rst +++ b/doc_src/cmds/echo.rst @@ -25,6 +25,8 @@ The following options are available: - ``-e``, Enable interpretation of backslash escapes +Unlike other shells, this echo accepts ``--`` to signal the end of the options. + Escape Sequences ---------------- @@ -59,15 +61,15 @@ Example :: - echo 'Hello World' + > echo 'Hello World' + Hello World -Print hello world to stdout + > echo -e 'Top\\nBottom' + Top + Bottom -:: - - echo -e 'Top\\nBottom' - -Print Top and Bottom on separate lines, using an escape sequence + > echo -- -n + -n See Also --------