mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
parent
97e126b1dd
commit
84ce58494e
|
@ -370,6 +370,8 @@ func captureOutput(ec *EvalCtx, op Op) []Value {
|
|||
ClosePorts(newEc.ports)
|
||||
|
||||
<-bytesCollected
|
||||
pipeRead.Close()
|
||||
|
||||
close(ch)
|
||||
<-chCollected
|
||||
|
||||
|
|
|
@ -353,6 +353,8 @@ func evalAndCollect(t *testing.T, texts []string, chsize int) ([]Value, []byte,
|
|||
|
||||
pw.Close()
|
||||
<-bytesDone
|
||||
pr.Close()
|
||||
|
||||
return outs, outBytes, ret, ex
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user