about summary refs log tree commit diff
path: root/Doc/Zsh/mod_system.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-06-05 13:21:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-06-05 13:21:56 +0000
commit8346a5e8d28899f88c92ea3cd772012ad4a50e49 (patch)
treeb4f0b2a37430ad250b328eea4950872f5382f6bc /Doc/Zsh/mod_system.yo
parent38ad28d8ac1715cd0332d4188706b89af6f9ba73 (diff)
downloadzsh-8346a5e8d28899f88c92ea3cd772012ad4a50e49.tar.gz
zsh-8346a5e8d28899f88c92ea3cd772012ad4a50e49.tar.xz
zsh-8346a5e8d28899f88c92ea3cd772012ad4a50e49.zip
22483: add $sysparams to zsh/system
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()