summaryrefslogtreecommitdiff
path: root/Doc/help/echo
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:19 +0100
commit2794556a41b50f635b6aa49c32fc6ca7bc08c901 (patch)
tree9557d7a073d4b24e9f10cdc337d9a819eb65ad1a /Doc/help/echo
parentb0d5cb56971618762ab13dbdb8fb17753f07f0f6 (diff)
parent94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (diff)
downloadzsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.tar.gz
zsh-2794556a41b50f635b6aa49c32fc6ca7bc08c901.zip
Update upstream source from tag 'upstream/5.8'
Update to upstream version '5.8' with Debian dir b7a9cb7b782a12a49dca06e06ca2554b5a95bf93
Diffstat (limited to 'Doc/help/echo')
-rw-r--r--Doc/help/echo33
1 files changed, 33 insertions, 0 deletions
diff --git a/Doc/help/echo b/Doc/help/echo
new file mode 100644
index 000000000..24299d6f6
--- /dev/null
+++ b/Doc/help/echo
@@ -0,0 +1,33 @@
+echo [ -neE ] [ arg ... ]
+ Write each arg on the standard output, with a space separating
+ each one. If the -n flag is not present, print a newline at the
+ end. echo recognizes the following escape sequences:
+
+ \a bell character
+ \b backspace
+ \c suppress subsequent characters and final newline
+ \e escape
+ \f form feed
+ \n linefeed (newline)
+ \r carriage return
+ \t horizontal tab
+ \v vertical tab
+ \\ backslash
+ \0NNN character code in octal
+ \xNN character code in hexadecimal
+ \uNNNN unicode character code in hexadecimal
+ \UNNNNNNNN
+ unicode character code in hexadecimal
+
+ The -E flag, or the BSD_ECHO option, can be used to disable
+ these escape sequences. In the latter case, -e flag can be used
+ to enable them.
+
+ Note that for standards compliance a double dash does not termi-
+ nate option processing; instead, it is printed directly. How-
+ ever, a single dash does terminate option processing, so the
+ first dash, possibly following options, is not printed, but ev-
+ erything following it is printed as an argument. The single
+ dash behaviour is different from other shells. For a more por-
+ table way of printing text, see printf, and for a more control-
+ lable way of printing text within zsh, see print.