file:read_file/1
missing 1st binary of /dev/stdin
which comes from Unix pipe
#8725
Labels
bug
Issue is reported as a bug
Describe the bug
I wrote a escript like following,
Then use it with Unix pipe like following
LC_ALL=c ping -c 1 example.com | escript pipe_test_with_file_read.erl
Above didn't put anything, but when changed the ping
count
option from 1 to 2, the result was printed without 1st ping.To Reproduce
It's the same as the Bug section.
Expected behavior
It would be nice to be able to use
/dev/stdin
directly in a Unix pipe.I'm an Elixir programmer, this issue comes from elixir-lang/elixir#13780
Affected versions
I just confirmed this with
27.0.1
.Additional context
Nothing.
The text was updated successfully, but these errors were encountered: