summaryrefslogtreecommitdiff
path: root/Doc/Zsh/mod_system.yo
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/Zsh/mod_system.yo')
-rw-r--r--Doc/Zsh/mod_system.yo18
1 files changed, 17 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_system.yo b/Doc/Zsh/mod_system.yo
index ca15fb5ec..3540a168f 100644
--- a/Doc/Zsh/mod_system.yo
+++ b/Doc/Zsh/mod_system.yo
@@ -2,7 +2,7 @@ COMMENT(!MOD!zsh/system
A builtin interface to various low-level system features.
!MOD!)
The tt(zsh/system) module makes available three builtin commands and
-a parameter.
+two parameters.
sect(Builtins)
@@ -114,6 +114,7 @@ enditem()
sect(Parameters)
startitem()
+vindex(errnos)
item(tt(errnos))(
A readonly array of the names of errors defined on the system. These
are typically macros defined in C by including the system header file
@@ -125,4 +126,19 @@ tt(E)var(num) in the array.
Note that aliases for errors are not handled; only the canonical name is
used.
)
+vindex(sysparams)
+item(tt(sysparams))(
+A readonly associative array. The keys are:
+startitem()
+item(tt(pid))(
+Returns the process ID of the current process, even in subshells. Compare
+tt($$), which returns the process ID of the main shell process.
+)
+item(tt(ppid))(
+Returns the process ID of the parent of the current process, even in
+subshells. Compare tt($PPID), which returns the process ID of the parent
+of the main shell process.
+)
+enditem()
+)
enditem()