1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

37127: document indexing of $signals

This commit is contained in:
Peter Stephenson 2015-11-17 10:43:23 +00:00
parent 8d1e882b78
commit bc543abbf6
2 changed files with 12 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2015-11-17 Peter Stephenson <p.stephenson@samsung.com>
* 37127 (minor tweak): Doc/Zsh/params.yo: document indexing of
$signals.
2015-11-16 Mikael Magnusson <mikachu@gmail.com>
* Eric Cook: 36986: Functions/Misc/zed: Add -- to the `functions'

View file

@ -771,7 +771,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>)(