In the following code, if stdout was written to by the parent interp before closing
then it will fail on the line that configures the (new) stdout channel with the error:
can not find channel named "stdout"
If the first line that outputs to stdout in the parent interp is commented out, the code
works as expected:
interp create foo
puts "before, parent" ;# Works if this line is commented out
interp eval foo {puts stderr "before, child"}
interp eval foo {close stdout}
interp eval foo [list open [exec tty] w]
interp eval foo {chan configure stdout -buffering line -blocking 0}
puts "New stdout, from parent"
interp eval foo {puts "New stdout, from child"}
|