summaryrefslogtreecommitdiff
path: root/Doc/Zsh/params.yo
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/Zsh/params.yo')
-rw-r--r--Doc/Zsh/params.yo17
1 files changed, 13 insertions, 4 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index ba2856b34..21bb87442 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -99,6 +99,11 @@ the syntax:
ifzman()
indent(var(name)tt(+=LPAR())var(value) ...tt(RPAR()))
+Within the parentheses on the right hand side of either form of the
+assignment, newlines and semicolons are treated the same as white space,
+separating individual var(value)s. Any consecutive sequence of such
+characters has the same effect.
+
Ordinary array parameters may also be explicitly declared with:
findex(typeset, use of)
ifzman()
@@ -383,9 +388,7 @@ as part of an arithmetic expression in an ordinary subscript.
To avoid subscript parsing limitations in assignments to associative array
elements, use the append syntax:
-example(
- aa+=('key with "*strange*" characters' 'value string')
-)
+example(aa+=('key with "*strange*" characters' 'value string'))
The basic rule to remember when writing a subscript expression is that all
text between the opening `tt([)' and the closing `tt(])' is interpreted
@@ -773,7 +776,13 @@ Incremented by one each time a new shell is started.
)
vindex(signals)
item(tt(signals))(
-An array containing the names of the signals.
+An array containing the names of the signals. Note that with
+the standard zsh numbering of array indices, where the first element
+has index 1, the signals are offset by 1 from the signal number
+used by the operating system. For example, on typical Unix-like systems
+tt(HUP) is signal number 1, but is referred to as tt($signals[2]). This
+is because of tt(EXIT) at position 1 in the array, which is used
+internally by zsh but is not known to the operating system.
)
vindex(TRY_BLOCK_ERROR)
item(tt(TRY_BLOCK_ERROR) <S>)(