diff options
author | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-10 04:55:10 +0000 |
---|---|---|
committer | Bart Schaefer <barts@users.sourceforge.net> | 2000-05-10 04:55:10 +0000 |
commit | 4c1d37d7d061ed97a4eaa0714560f3228fd6ff13 (patch) | |
tree | 50da87ff54fce615f19f48e679abd4adf79dba3c | |
parent | e89360b2dbe0633d02103130da3b4bbde25c7288 (diff) | |
download | zsh-4c1d37d7d061ed97a4eaa0714560f3228fd6ff13.tar.gz zsh-4c1d37d7d061ed97a4eaa0714560f3228fd6ff13.tar.xz zsh-4c1d37d7d061ed97a4eaa0714560f3228fd6ff13.zip |
11288: Reopen stdin on /dev/null to avoid confusing programs that don't
expect it to be closed.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Completion/Commands/_complete_help | 1 | ||||
-rw-r--r-- | Completion/Core/_main_complete | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 4cf5f7586..134cba519 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-05-09 Bart Schaefer <schaefer@brasslantern.com> + + * 11288: Completion/Commands/_complete_help, + Completion/Core/_main_complete: Reopen stdin from /dev/null, + because ZLE closes it during any widget function, which confuses + some external programs. + 2000-05-09 Peter Stephenson <pws@cambridgesiliconradio.com> * pws: 11285: Src/Modules/zftp.c: move cleanup code to diff --git a/Completion/Commands/_complete_help b/Completion/Commands/_complete_help index b952480f8..94ca4abe0 100644 --- a/Completion/Commands/_complete_help +++ b/Completion/Commands/_complete_help @@ -3,6 +3,7 @@ _complete_help() { setopt localoptions nullglob rcexpandparam extendedglob unsetopt markdirs globsubst shwordsplit nounset ksharrays + exec </dev/null # ZLE closes stdin, which can cause errors local _sort_tags=_help_sort_tags text i j k typeset -A help_funcs help_tags help_sfuncs help_styles diff --git a/Completion/Core/_main_complete b/Completion/Core/_main_complete index aa061ec91..9882639fa 100644 --- a/Completion/Core/_main_complete +++ b/Completion/Core/_main_complete @@ -18,6 +18,7 @@ setopt localoptions nullglob rcexpandparam extendedglob unsetopt markdirs globsubst shwordsplit nounset ksharrays +exec </dev/null # ZLE closes stdin, which can cause errors local func funcs ret=1 tmp _compskip format nm \ _completers _completer _completer_num curtag _comp_force_list \ |