Open busterwood opened 4 years ago
Digged into this and there is no solutions for this for now. Redirections like these results in UV_FILE type. Current implementation tried to mitigate the issue by making it behave like UV_PIPE, but uv_pipe_init check and fails on UV_FILE. And the deep reason this fails is because of epoll not supporting plain files descriptor.
Redirections like these
Like which? Are there other redirections that do work?
I'm on Mac OS and both 0.3.0 and latest main work just fine for me when piping or redirecting a file (using provided examples). Is this a Windows or platform specific issue? Or perhaps the UV version has been bumped since this was opened and the behavior I'm seeing is new?
@busterwood Could you confirm if this is still an issue with the latest code in main
and let us know which platform you're seeing the issue on?
Using bash to redirect Stdin from a file seems to fail.
Here is the simplest example
test1.wren
:When I run interactively it works:
However, when I redirect stdin to read from a non-empty file it fails:
Using Ubuntu on WSL 2 on Windows 10.