about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2001-10-05 15:02:18 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2001-10-05 15:02:18 +0000
commita5890553e8c7d51cf8fa8cf0a6ac2bb7a60be2fe (patch)
treeaac63141abe4fb1ab3347ea3bb7929d728b4a0a5 /Doc
parentaac666130c107cddbefe3531b8f7ab8370132dfe (diff)
downloadzsh-a5890553e8c7d51cf8fa8cf0a6ac2bb7a60be2fe.tar.gz
zsh-a5890553e8c7d51cf8fa8cf0a6ac2bb7a60be2fe.tar.xz
zsh-a5890553e8c7d51cf8fa8cf0a6ac2bb7a60be2fe.zip
add printf builtin (15851, 15948)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo18
1 files changed, 18 insertions, 0 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 479d398c9..eceb3258b 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -716,6 +716,24 @@ ifnzman(noderef(Prompt Expansion))\
 )
 enditem()
 )
+findex(printf)
+item(tt(printf) var(format) [ var(arg) ... ])(
+Print the arguments according to the format specification. Formatting
+rules are the same as used in C. The same escape sequences as for tt(echo)
+are recognised in the format. All C format specifications ending in one of
+csdiouxXeEfgG are handled. In addition to this, `tt(%b)' can be used
+instead of `tt(%s)' to cause escape sequences in the argument to be
+recognised and `tt(%q)' can be used to quote the argument in such a way
+that allows it to be reused as shell input. With the numeric format
+specifiers, if the corresponding argument starts with a quote character,
+the numeric value of the following character is used as the number to
+print.
+
+If arguments remain unused after formatting, the format string is reused
+until all arguments have been consumed. If more arguments are required by
+the format than have been specified, the behaviour is as if zero or an
+empty string had been specified as the argument.
+)
 findex(pushd)
 pindex(PUSHD_TO_HOME, use of)
 pindex(PUSHD_MINUS, use of)