...furthermore: I naively thought the same code would capture the console 
output in a variable. It does not. What am I still missing?
~~~
begin
stdout_orig = STDOUT
rd, wr = redirect_stdout()
try
1+2
finally
redirect_stdout(stdout_orig)
close(wr)
out = readall(rd)
println((length(out),out))
end
end
~~~

RESULT:
(0,"")
3

That is, the "out" variable is empty, but the result of 1+2, "3" is 
magically printed in the console window. Again, a very similar piece of 
code used to capture the console output a couple months ago with the then 
current 0.3.0 nightly.

Reply via email to