summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-06-12 22:01:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-06-12 22:01:37 +0000
commit505675f2bd03149b189b31a76bc319de379d0e91 (patch)
tree7d55558af9e00308e10e3349efafa0df9fca0709 /Doc/Zsh
parentf9e374d43151eb96f626adc1b79d6616aaf52e55 (diff)
downloadzsh-505675f2bd03149b189b31a76bc319de379d0e91.tar.gz
zsh-505675f2bd03149b189b31a76bc319de379d0e91.tar.xz
zsh-505675f2bd03149b189b31a76bc319de379d0e91.zip
23554: add $zsh_scheduled_events
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/mod_sched.yo19
-rw-r--r--Doc/Zsh/params.yo4
2 files changed, 22 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_sched.yo b/Doc/Zsh/mod_sched.yo
index 87ee9064c..0e9075841 100644
--- a/Doc/Zsh/mod_sched.yo
+++ b/Doc/Zsh/mod_sched.yo
@@ -1,7 +1,8 @@
 COMMENT(!MOD!zsh/sched
 A builtin that provides a timed execution facility within the shell.
 !MOD!)
-The tt(zsh/sched) module makes available one builtin command:
+The tt(zsh/sched) module makes available one builtin command and one
+parameter.
 
 startitem()
 findex(sched)
@@ -40,3 +41,19 @@ visible output to the terminal; it is not needed, for example, with
 output that updates a terminal emulator's title bar.
 )
 enditem()
+
+startitem()
+vindex(zsh_scheduled_events)
+item(zsh_scheduled_events)(
+A readonly array corresponding to the events scheduled by the
+tt(sched) builtin.  The indices of the array correspond to the numbers
+shown when tt(sched) is run with no arguments (provided that the
+tt(KSH_ARRAYS) option is not set).  The value of the
+corresponding element is the same as the text shown to the right
+of the index in the tt(sched) listing.
+
+The tt(sched) builtin should be used for manipulating the events.  Note
+that this will have an immediate effect on the contents of the array,
+so that indices may become invalid.
+)
+enditem()
diff --git a/Doc/Zsh/params.yo b/Doc/Zsh/params.yo
index f839ec880..147c3a3ed 100644
--- a/Doc/Zsh/params.yo
+++ b/Doc/Zsh/params.yo
@@ -712,6 +712,10 @@ item(tt(ZSH_NAME))(
 Expands to the basename of the command used to invoke this instance
 of zsh.
 )
+item(tt(zsh_scheduled_events))(
+See ifzman(the section `The zsh/sched Module' in zmanref(zshmodules))\
+ifnzman(noderef(The zsh/sched Module)).
+)
 vindex(ZSH_VERSION)
 item(tt(ZSH_VERSION))(
 The version number of this zsh.