Re: Reusing connections for multiple commands (General questions)
I'm almost there.
I had to go to non-blocking mode and set the prompt explicitly (to be reliable if someone sends me PS1=xxxx). I also had to turn off echoing commands (stty -echo).
Now, it seems that all of the UNIX newlnes are being translated into CRLF. For example if I cat a multiline text file, I get CRLFs on the receiving end.
Is that a property of the SSH library or is that another terminal setting?