diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-25 11:15:26 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2010-02-25 11:15:26 +0000 |
| commit | a3b971a27ec7ba78e0a6b0a248c619b8cec53d98 (patch) | |
| tree | a9b209d3e63a7ea3cbeab3eea7fc607aeffef8d1 /Doc/Zsh/mod_system.yo | |
| parent | 27754 plus NEWS change: add "zsystem flock" (diff) | |
| download | zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar.gz zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar.bz2 zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar.lz zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar.xz zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.tar.zst zsh-a3b971a27ec7ba78e0a6b0a248c619b8cec53d98.zip | |
27755: add "zsystem supports" to zsh/system
Diffstat (limited to 'Doc/Zsh/mod_system.yo')
| -rw-r--r-- | Doc/Zsh/mod_system.yo | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_system.yo b/Doc/Zsh/mod_system.yo index 29047bfe4..dce07175f 100644 --- a/Doc/Zsh/mod_system.yo +++ b/Doc/Zsh/mod_system.yo @@ -148,6 +148,16 @@ If the option tt(-r) is given, the lock is only for reading, otherwise it is for reading and writing. The file descriptor is opened accordingly. ) +item(tt(zsystem supports) var(subcommand))( +The builtin tt(zsystem)'s subcommand tt(supports) tests whether a +given subcommand is supported. It returns status 0 if so, else +status 1. It operates silently unless there was a syntax error +(i.e. the wrong number of arguments), in which case status 255 +is returned. Status 1 can indicate one of two things: var(subcommand) +is known but not supported by the current operating system, or +var(subcommand) is not known (possibly because this is an older +version of the shell before it was implemented). +) enditem() subsect(Parameters) |
