diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-05 21:02:08 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-09-05 21:02:08 +0000 |
commit | db31a13ecdd8306aad63319ace28bf7d029d4829 (patch) | |
tree | e57d6287ae80fb12341a32eae7b8bc0f4d5f2711 /Doc | |
parent | 7ce1d5735832e51bc13e255f2e8549873c9688ff (diff) | |
download | zsh-db31a13ecdd8306aad63319ace28bf7d029d4829.tar.gz zsh-db31a13ecdd8306aad63319ace28bf7d029d4829.tar.xz zsh-db31a13ecdd8306aad63319ace28bf7d029d4829.zip |
25627: add $ZSH_SUBSHELL
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Zsh/params.yo | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo index bf12b5ded..bc8a79450 100644 --- a/Doc/Zsh/params.yo +++ b/Doc/Zsh/params.yo @@ -731,6 +731,13 @@ item(tt(zsh_scheduled_events))( See ifzman(the section `The zsh/sched Module' in zmanref(zshmodules))\ ifnzman(noderef(The zsh/sched Module)). ) +vindex(ZSH_SUBSHELL <S>) +item(tt(ZSH_SUBSHELL))( +Readonly integer. Initially zero, incremented each time the shell forks +to create a subshell for executing code. Hence `tt((print $ZSH_SUBSHELL))' +and `tt(print $(print $ZSH_SUBSHELL))' output 1, while +`tt(( (print $ZSH_SUBSHELL) ))' outputs 2. +) vindex(ZSH_VERSION) item(tt(ZSH_VERSION))( The version number of this zsh. |