summaryrefslogtreecommitdiff
path: root/Doc/help/echo
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:05 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 03:29:05 +0100
commit94c033d2e281eb1f49e8366d21fc259ce8c0c4f5 (patch)
tree701ad2fd3a7867e97689d1349d46ca25a92297b4 /Doc/help/echo
parent643de931640e01aa246723d2038328ef33737965 (diff)
parent77d203f3fbbd76386bf197f9776269a1de580bb5 (diff)
downloadzsh-94c033d2e281eb1f49e8366d21fc259ce8c0c4f5.tar.gz
zsh-94c033d2e281eb1f49e8366d21fc259ce8c0c4f5.zip
New upstream version 5.8
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.