diff options
| author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-19 08:46:54 +0000 |
|---|---|---|
| committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-10-19 08:46:54 +0000 |
| commit | 16d7e31ae81bdd87dd90ce91d9072006e43f6596 (patch) | |
| tree | 163fa15d6076a55c9cb0991656bf3b4d512f6de8 /Doc/Zsh/mod_zpty.yo | |
| parent | Changed Src/hist.c (13034). (diff) | |
| download | zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar.gz zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar.bz2 zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar.lz zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar.xz zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.tar.zst zsh-16d7e31ae81bdd87dd90ce91d9072006e43f6596.zip | |
make non-blocking IO on ptys work again; add -t option to test if command is still alive (13035)
Diffstat (limited to 'Doc/Zsh/mod_zpty.yo')
| -rw-r--r-- | Doc/Zsh/mod_zpty.yo | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/Zsh/mod_zpty.yo b/Doc/Zsh/mod_zpty.yo index 0c1558056..664e2fabd 100644 --- a/Doc/Zsh/mod_zpty.yo +++ b/Doc/Zsh/mod_zpty.yo @@ -9,6 +9,7 @@ xitem(tt(zpty) [ tt(-e) ] [ tt(-b) ] var(name) var(command) [ var(args ...) ]) xitem(tt(zpty) tt(-d) [ var(names) ... ]) xitem(tt(zpty) tt(-w) [ tt(-n) ] var(name) var(strings ...)) xitem(tt(zpty) tt(-r) var(name) [ var(param) [ var(pattern) ] ]) +xitem(tt(zpty) tt(-t) var(name)) item(tt(zpty) [ tt(-L) ])( In the first form, the var(command) is started with the var(args) as arguments. The command runs under a newly assigned pseudo-terminal; this @@ -35,6 +36,10 @@ read will be put in the parameter named var(param). If the var(pattern) is also given, output will be read until the whole string read matches the var(pattern). +The tt(-t) option can be used to test whether the command var(name) is +still running. It returns a zero value if the command is running and +a non-zero value otherwise. + The last form without any arguments is used to list the commands currently defined. If the tt(-L) option is given, this is done in the form of calls to the tt(zpty) builtin. |
