You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[sukera@tower ~]$ cat example.jl
function foo()
while iszero(bytesavailable(stdin))
println("no data")
sleep(0.2)
end
write(stdout, readavailable(stdin))
println()
end
[sukera@tower ~]$ echo "foo" | julia -L example.jl -e 'foo()'
no data
no data
no data
no data
no data
no data
no data
^C
This should just print foo\n on stdout and then exit, since there clearly is data available.
The text was updated successfully, but these errors were encountered:
Seelengrab
added
bug
Indicates an unexpected problem or unintended behavior
io
Involving the I/O subsystem: libuv, read, write, etc.
labels
May 30, 2024
MWE:
This should just print
foo\n
on stdout and then exit, since there clearly is data available.The text was updated successfully, but these errors were encountered: