If I open a Port in IEx for a script that prints anything to stderr, none of the output is printed with carriage returns. How can I fix this? I am running external software whose output I cannot control, so I can't just add the returns manually.
Example
In /tmp/run.sh
#!/usr/bin/env bash
>&2 echo -e "line 1\nline 2\nline 3\nline 4"
In an IEx shell
iex(1)> Port.open({:spawn_executable, "/tmp/run.sh"}, [])
line 1
line 2
line 3
line 4