bugzilla-daemon at mindrot.org
2022-Jul-08 10:00 UTC
[Bug 3458] New: -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458
Bug ID: 3458
Summary: -t option make error message into stdout
Product: Portable OpenSSH
Version: v9.0p1
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at mindrot.org
Reporter: walkerxk at gmail.com
when i don't use -t option, error message keep in stderr
when i use -t option, error message was sent into stdout
how to reproduce
walkerxk at ubuntu:~$ ssh 127.1 ls -d $(mktemp -u) 2>/dev/null
walkerxk at ubuntu:~$ ssh -t 127.1 ls -d $(mktemp -u) 2>/dev/null
ls: cannot access '/tmp/tmp.tckToRNwR7': No such file or directory
walkerxk at ubuntu:~$
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2022-Jul-13 08:28 UTC
[Bug 3458] -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458
--- Comment #1 from walkerxk at gmail.com <walkerxk at gmail.com> ---
-t also change \n to \r\n:
walkerxk at ubuntu:~$ echo -e 'a\nb' >test
walkerxk at ubuntu:~$ ssh 127.1 cat test|xxd
00000000: 610a 620a a.b.
walkerxk at ubuntu:~$ ssh -t 127.1 cat test|xxd
00000000: 610d 0a62 0d0a a..b..
walkerxk at ubuntu:~$
--
You are receiving this mail because:
You are watching the assignee of the bug.
bugzilla-daemon at mindrot.org
2022-Jul-14 00:09 UTC
[Bug 3458] -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458
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.
bugzilla-daemon at mindrot.org
2022-Jul-14 01:45 UTC
[Bug 3458] -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458 --- Comment #3 from walkerxk at gmail.com <walkerxk at gmail.com> --- thanks, stty -opost will fix it. -- 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.
bugzilla-daemon at mindrot.org
2023-Feb-10 03:31 UTC
[Bug 3458] -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
Status|NEW |RESOLVED
CC| |djm at mindrot.org
--
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
bugzilla-daemon at mindrot.org
2023-Mar-17 02:41 UTC
[Bug 3458] -t option make error message into stdout
https://bugzilla.mindrot.org/show_bug.cgi?id=3458
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #4 from Damien Miller <djm at mindrot.org> ---
OpenSSH 9.3 has been released. Close resolved bugs
--
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.