diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-11 00:24:55 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-11 00:24:55 +0000 |
commit | b1b64465775283936a7bf54f584f3521ba75f3dd (patch) | |
tree | a6e0aa2d1fbea5ffaf1c1dd0f2e18ccd67a284aa | |
parent | 1b067c882abeb5947c841adcfbf39cba062b3b71 (diff) | |
download | zsh-b1b64465775283936a7bf54f584f3521ba75f3dd.tar.gz zsh-b1b64465775283936a7bf54f584f3521ba75f3dd.tar.xz zsh-b1b64465775283936a7bf54f584f3521ba75f3dd.zip |
manual/8192
-rw-r--r-- | Src/exec.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index 7993af2da..69a34254e 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1908,7 +1908,10 @@ execcmd(Cmd cmd, int input, int output, int how, int last1) case MERGEOUT: if (fn->fd2 < 10) closemn(mfds, fn->fd2); - if (fn->fd2 > 9 && fdtable[fn->fd2]) { + if (fn->fd2 > 9 && + (fdtable[fn->fd2] || + fn->fd2 == coprocin || + fn->fd2 == coprocout)) { fil = -1; errno = EBADF; } else { |