diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2008-01-25 16:48:22 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-01-25 16:48:22 +0000 |
| commit | b5570971efc9cd3f41f2f89bdd287a72866edaf7 (patch) | |
| tree | 573478a9cbd3205abf4cf152735f25aa0a541c44 /Doc/Zsh/mod_zpty.yo | |
| parent | 24464: remove trailing whitespace. (diff) | |
| download | zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar.gz zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar.bz2 zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar.lz zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar.xz zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.tar.zst zsh-b5570971efc9cd3f41f2f89bdd287a72866edaf7.zip | |
24460: make zpty -rt more consistent by polling before every byte
Diffstat (limited to 'Doc/Zsh/mod_zpty.yo')
| -rw-r--r-- | Doc/Zsh/mod_zpty.yo | 5 |
1 files changed, 4 insertions, 1 deletions
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 |
