1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00

45583/0004: docs: Document that hook functions may rely on $? (see workers/48570).

This commit is contained in:
Daniel Shahaf 2021-04-14 14:27:10 +00:00
parent 9b5f80285d
commit cc833e01fe
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2021-04-15 Daniel Shahaf <d.s@daniel.shahaf.name>
* 45583/0004: Doc/Zsh/func.yo: docs: Document that hook functions
may rely on $? (see workers/48570).
* 45583/0003: Doc/Zsh/contrib.yo: docs: Fix rendering in the
man page output

View file

@ -206,7 +206,8 @@ findex(hook functions)
For the functions below, it is possible to define an array that has the
same name as the function with `tt(_functions)' appended. Any element in
such an array is taken as the name of a function to execute; it is executed
in the same context and with the same arguments as the basic function. For
in the same context and with the same arguments and same initial value of tt($?)
as the basic function. For
example, if tt($chpwd_functions) is an array containing the values
`tt(mychpwd)', `tt(chpwd_save_dirstack)', then the shell attempts to
execute the functions `tt(chpwd)', `tt(mychpwd)' and