From b5570971efc9cd3f41f2f89bdd287a72866edaf7 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 25 Jan 2008 16:48:22 +0000 Subject: 24460: make zpty -rt more consistent by polling before every byte --- Doc/Zsh/mod_zpty.yo | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh') diff --git a/Doc/Zsh/mod_zpty.yo b/Doc/Zsh/mod_zpty.yo index 39347c116..5a5459179 100644 --- a/Doc/Zsh/mod_zpty.yo +++ b/Doc/Zsh/mod_zpty.yo @@ -64,7 +64,10 @@ is tt(2) if this is because the command has finished. If the tt(-r) option is combined with the tt(-t) option, tt(zpty) tests whether output is available before trying to read. If no output is -available, tt(zpty) immediately returns the status tt(1). +available, tt(zpty) immediately returns the status tt(1). When used +with a var(pattern), the behaviour on a failed poll is similar to +when the command has exited: the return value is zero if at least +one character could still be read even if the pattern failed to match. ) item(tt(zpty) tt(-t) var(name))( The tt(-t) option without the tt(-r) option can be used to test -- cgit 1.4.1