1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

make non-blocking IO on ptys work again; add -t option to test if command is still alive (13035)

This commit is contained in:
Sven Wischnowsky 2000-10-19 08:46:54 +00:00
parent f718ed6b52
commit 16d7e31ae8
6 changed files with 55 additions and 17 deletions

View file

@ -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.