When a backquote command inside a here-document had a pipe with more

than two processes (got that? :-), the stdin fd of the middle
processes that has just been set up was accidetially closed. Don't do
this.

PR:		bin/14527
This commit is contained in:
Martin Cracauer 1999-11-05 12:06:30 +00:00
parent 8488257344
commit 74eeb719fd

View File

@ -499,7 +499,8 @@ evalpipe(n)
close(prevfd);
}
if (pip[1] >= 0) {
close(pip[0]);
if (!prevfd > 0)
close(pip[0]);
if (pip[1] != 1) {
close(1);
copyfd(pip[1], 1);