From 577ebe0b8ad4289221be0b4bc2bb03aea8477cfc Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 15 Oct 2001 11:34:27 +0000 Subject: use arithmetic evaluation for numeric arguments to printf (16042) --- Doc/Zsh/builtins.yo | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh/builtins.yo') diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 8d23fc175..91df46c06 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -732,8 +732,10 @@ 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. With `tt(%n)', the corresponding argument is taken as an identifier -which is created as an integer parameter. +print otherwise the argument is evaluated as an arithmetic expression. See +noderef(Arithmetic Evaluation) for a description of arithmetic +expressions. With `tt(%n)', the corresponding argument is taken as an +identifier which is created as an integer parameter. If arguments remain unused after formatting, the format string is reused until all arguments have been consumed. If more arguments are required by -- cgit 1.4.1