asdf-vm / asdf-elixir

Elixir plugin for asdf version manager
https://github.com/asdf-vm/asdf
MIT License
473 stars 70 forks source link

pass /dev/null as stdin to the mix commands to prevent interfering with while loop #121

Closed tverlaan closed 1 year ago

tverlaan commented 1 year ago

Hi @Stratus3D

I think this might be more straight forward to comprehend and reason about. It also actually addresses the issue instead of applying a workaround to the read command in the while loop.

Stratus3D commented 1 year ago

This code makes much more sense! I also like the fact that it is explicit about which command gets no input. Thanks @tverlaan !