I have a use case that would be made very convenient by using the ssh exec feature. Basically a shell script would ssh into an Erlang node and run a command. The shell script captures the output and processes it.
My understanding of the ssh exec feature is that I can either return the output of the command being exec'd or write to stdout. The output is large and would be easier to write incrementally to stdout. I found out that when writing to stdout, LF characters are always converted to CRLF sequences. This breaks the program at the other side of the pipe.
The following modification to `ssh_cli.erl` fixes the issue:
This isn't the right fix, though.
I don't see any other easy way of changing this behavior. Am I missing something? If not, what would be the "right" way to add the ability to disable NL->CRNL conversion here?