From a5890553e8c7d51cf8fa8cf0a6ac2bb7a60be2fe Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 5 Oct 2001 15:02:18 +0000 Subject: add printf builtin (15851, 15948) --- Doc/Zsh/builtins.yo | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Doc/Zsh/builtins.yo') 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) -- cgit 1.4.1