summary refs log tree commit diff
path: root/Doc/Zsh
diff options
context:
space:
mode:
authorStephane Chazelas <stephane.chazelas@gmail.com>2017-06-13 21:34:55 -0400
committerEric Cook <illua@users.sourceforge.net>2017-06-13 21:34:55 -0400
commit4d007e269d1892e45e44ff92b6b9a1a205ff64d5 (patch)
tree87b4b3c6acaac28cf75d57187c303ea10a0688f0 /Doc/Zsh
parenteb783754bdb74377f3cea4ceca9c23a02ea1bf58 (diff)
downloadzsh-4d007e269d1892e45e44ff92b6b9a1a205ff64d5.tar.gz
zsh-4d007e269d1892e45e44ff92b6b9a1a205ff64d5.tar.xz
zsh-4d007e269d1892e45e44ff92b6b9a1a205ff64d5.zip
41275: Leave stdin open when executing widgets
Diffstat (limited to 'Doc/Zsh')
-rw-r--r--Doc/Zsh/zle.yo12
1 files changed, 6 insertions, 6 deletions
diff --git a/Doc/Zsh/zle.yo b/Doc/Zsh/zle.yo
index b65e3be64..bd0252f6e 100644
--- a/Doc/Zsh/zle.yo
+++ b/Doc/Zsh/zle.yo
@@ -750,12 +750,12 @@ sect(User-Defined Widgets)
 cindex(widgets, user-defined)
 User-defined widgets, being implemented as shell functions,
 can execute any normal shell command.  They can also run other widgets
-(whether built-in or user-defined) using the tt(zle) builtin command.
-The standard input of the function is closed to prevent external commands
-from unintentionally blocking ZLE by reading from the terminal, but
-tt(read -k) or tt(read -q) can be used to read characters.  Finally,
-they can examine and edit the ZLE buffer being edited by
-reading and setting the special parameters described below.
+(whether built-in or user-defined) using the tt(zle) builtin command. The
+standard input of the function is redirected from /dev/null to prevent
+external commands from unintentionally blocking ZLE by reading from the
+terminal, but tt(read -k) or tt(read -q) can be used to read characters.
+Finally, they can examine and edit the ZLE buffer being edited by reading
+and setting the special parameters described below.
 
 cindex(parameters, editor)
 cindex(parameters, zle)