Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Sep 2017 15:56:14 +0000
From:      Mahmoud Al-Qudsi <mqudsi@neosmart.net>
To:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   SSH from WSL acts as if overwrite were enabled while actually inserting
Message-ID:  <BN6PR22MB0083E447E8D6E1E0B799266EA76B0@BN6PR22MB0083.namprd22.prod.outlook.com>

next in thread | raw e-mail | index | archive | help
Hello all,

Sorry about the confusing subject line, it=92s the best I could think of to=
 succinctly summarize the issue at hand. I=92ve been running into an issue =
with FreeBSD from 10.x to 12-CURRENT and wanted to check with the mailing l=
ist before I bugged it to make sure it is a FreeBSD bug and not a WSL (the =
new Linux subsystem for Windows) bug.

When I ssh into a FreeBSD host from a TERM=3Dxterm-256color host that has n=
o problem SSHing into Linux machines, the following behavior is observed (r=
egardless of the $TERM value under FreeBSD or the SSH shell I=92m logging i=
nto).

Imagine the prompt currently reads as follows with the cursor at the space =
denoted by _ in the text below:

user@freebsd % foo_bar

If I type in ` foo` at this point, the prompt now reads

user@freebsd %  foo foo_

However, the _actual_ contents of the prompt are really

user@freebsd % foo foo bar_

i.e. the _displayed_ prompt acted as if OVERWRITE were on, but the actual b=
ehavior is that INSERT was enabled. The actual behavior is the expected beh=
avior, which is what the prompt should have shown.

I do not experience this behavior when using, say, Putty instead of OpenSSH=
 under WSL. I also do not experience this behavior when SSHing into a non-F=
reeBSD host.

If this is not a FreeBSD bug, I=92ll raise it with the WSL team who have pr=
oven to be very earnest in their attempts at fixing all compatibility issue=
s via their GitHub presence.

(A screenshot of the observed behavior, if it helps: http://i.imgur.com/k6h=
VtbQ.png )

Thank you,

Mahmoud Al-Qudsi
NeoSmart Technologies



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BN6PR22MB0083E447E8D6E1E0B799266EA76B0>