From 8346a5e8d28899f88c92ea3cd772012ad4a50e49 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 5 Jun 2006 13:21:56 +0000 Subject: 22483: add $sysparams to zsh/system --- Doc/Zsh/mod_system.yo | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh/mod_system.yo') 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() -- cgit 1.4.1