[Bug 3458] -t option make error message into stdout

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Jul 14 10:09:48 AEST 2022


Darren Tucker <dtucker at dtucker.net> changed:

           What    |Removed                     |Added
                 CC|                            |dtucker at dtucker.net

--- Comment #2 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to walkerxk at gmail.com from comment #1)
> -t also change \n to \r\n:

That's a function of the client's terminal's "cooked" mode.  If you
don't want it to do that you need to tell it to use "raw" mode.

$ stty raw
$ ssh -t 127.1 cat test|xxd
00000000: 610a 620a                                a.b.

$ ssty cooked
$ ssh -t 127.1 cat test|xxd
00000000: 610d 0a62 0d0a                           a..b..

You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list