...and this is what I meant by saying that print() does produce data on STDOUT (but regular console output does not): ~~~ begin stdout_orig = STDOUT rd, wr = redirect_stdout() print(1+2) redirect_stdout(stdout_orig) close(wr) out = readall(rd) println((length(out),out)) end ~~~
RESULT (as expected): (1,"3")