about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-05-11 16:39:02 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-05-11 16:39:02 +0000
commit0768b190ba9347bcfe2d43da2b61eded53173635 (patch)
tree1819a8f5eea27fcc13a81fd2f7229abc1ae453fb /Src
parenta39eb7948ee559d7aef6010a496ba0c1c1f24549 (diff)
downloadzsh-0768b190ba9347bcfe2d43da2b61eded53173635.tar.gz
zsh-0768b190ba9347bcfe2d43da2b61eded53173635.tar.xz
zsh-0768b190ba9347bcfe2d43da2b61eded53173635.zip
11326: Avoid init_io() on "exec < file" when zleactive.
Also fix OPK's slightly confused previous ChangeLog entry.
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 7ce553ade..e0247430b 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2097,7 +2097,7 @@ execcmd(Estate state, int input, int output, int how, int last1)
 		/* If this is 'exec < file', read from stdin, *
 		 * not terminal, unless `file' is a terminal. */
 		if (nullexec == 1 && fn->fd1 == 0 &&
-		    isset(SHINSTDIN) && interact)
+		    isset(SHINSTDIN) && interact && !zleactive)
 		    init_io();
 		break;
 	    case CLOSE: