Closed artemisSystem closed 1 year ago
This is odd. The interpreter uses Rust's File::open
when you call &fo
, so I guess that's the behavior it gives?
Regardless, The handles 0
, 1
, and 2
are reserved, so reading from/writing to them should get you the behavior you want.
ah, i didn't try that directly, will try that later
From what i can tell, it doesn't seem possible to write directly to stdout. I can use
&w
to write to/dev/stdout
, but if i try to pipe the output (uiua run file.uiua | something_else
), i get a permission denied error:Would you consider adding functions to read from stdin, and writing to stdout/stderr?