From 6f698f634a85d0b3d34b5566d1adb807de577e86 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 22 Sep 1999 13:04:17 +0000 Subject: zsh-workers/7976 --- Doc/Zsh/arith.yo | 8 ++++++++ Doc/Zsh/builtins.yo | 10 ++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/arith.yo b/Doc/Zsh/arith.yo index f40a84732..b18aed94c 100644 --- a/Doc/Zsh/arith.yo +++ b/Doc/Zsh/arith.yo @@ -78,6 +78,14 @@ short-circuiting, and only one of the latter two expressions in a ternary operator is evaluated. Note the precedence of the bitwise AND, OR, and XOR operators. +cindex(math functions) +cindex(functions, math) +Mathematical functions can be called with the syntax +`var(func)tt(LPAR())var(args)tt(RPAR())', where the function decides +if the var(args) is used as a string or a comma-separated list of +arithmetic expressions. The shell currently defines no mathematical +functions, but modules may define some. + An expression of the form `tt(#\)var(x)' where var(x) is any character sequence such as `tt(a)', `tt(^A)', or `tt(\M-\C-x)' gives the ascii value of this character and an expression of the form `tt(#)var(foo)' diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo index 7b79cd924..328e7db80 100644 --- a/Doc/Zsh/builtins.yo +++ b/Doc/Zsh/builtins.yo @@ -1259,8 +1259,8 @@ cindex(modules, loading) cindex(loading modules) xitem(tt(zmodload) [ tt(-dL) ] [ ... ]) xitem(tt(zmodload -e) [ ... ]) -xitem(tt(zmodload) [ tt(-a) [ tt(-bcp) [ tt(-I) ] ] ] [ tt(-iL) ] ...) -item(tt(zmodload) tt(-u) [ tt(-abcdp) [ tt(-I) ] ] [ tt(-iL) ] ...)( +xitem(tt(zmodload) [ tt(-a) [ tt(-bcpf) [ tt(-I) ] ] ] [ tt(-iL) ] ...) +item(tt(zmodload) tt(-u) [ tt(-abcdpf) [ tt(-I) ] ] [ tt(-iL) ] ...)( tt(zmodload) performs operations relating to zsh's loadable modules. This feature is not available on all operating systems, or on all installations on a particular operating system. @@ -1349,6 +1349,12 @@ item(tt(zmodload) tt(-up) [ tt(-i) ] var(parameter) ...)( The tt(-p) option is like the tt(-b) and tt(-c) options, but makes tt(zmodload) work on autoloaded parameters instead. ) +xitem(tt(zmodload) tt(-af) [ tt(-L) ]) +xitem(tt(zmodload) tt(-af) [ tt(-i) ] var(name) [ var(function) ... ]) +item(tt(zmodload) tt(-uf) [ tt(-i) ] var(function) ...)( +The tt(-p) option is like the tt(-b), tt(-p), and tt(-c) options, but +makes tt(zmodload) work on autoloaded math functions instead. +) xitem(tt(zmodload) tt(-a) [ tt(-L) ]) xitem(tt(zmodload) tt(-a) [ tt(-i) ] var(name) [ var(builtin) ... ]) item(tt(zmodload) tt(-ua) [ tt(-i) ] var(builtin) ...)( -- cgit 1.4.1