From owner-freebsd-current@freebsd.org Mon Sep 11 07:03:28 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9DE91E1FF43 for ; Mon, 11 Sep 2017 07:03:28 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2EA84737D0 for ; Mon, 11 Sep 2017 07:03:28 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wm0-x22f.google.com with SMTP id i189so31976873wmf.1 for ; Mon, 11 Sep 2017 00:03:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=6x47nfGfCDKDLYkD6Jg2aGanfe1cAa8PHpdYCXslykw=; b=Tkgr97uVrSw32fETizGWMdYYEMIQlwOXDAb1+3RKUrYydmUEPXuWo1yZaYnFyBcxJn OKnzWgwin6fxeClXc6Yg/JT72IJhRIERHVfsFZ0R6UR5bDjwsdSOGcKNF504MIXO+p8/ i8jez9K1AkXLpySZT6iAad+KB/9YGr/MUBOJNOMKuRaVlSPZMpMyFqGY1HfQC4cfttU2 tWxPwWOcgbpHCKfJ3UqHNuxqK7lW9bfMKR0jHUrdQkEqFFmSkeoafgfdpuDy//amv5dt NI71CGfgp6KO4nlei+N4QrpBPTe4yS2T6yfqf+3Odk815T92a/56x2aAKVciBdkDWlSz apBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=6x47nfGfCDKDLYkD6Jg2aGanfe1cAa8PHpdYCXslykw=; b=ZZDfI2Tpd0MnjvD4+3fsI+mFs11sAWS3ZyF+IjDH+U6TYylCzGAN/4btaEdT5HCaQC IfDWpf4EHHg/VHJqkO4zZJVaqBlZmFfwWS/tda05N79eW3xf7RJaQUotn5VZo3Sn7oRn fCkcVZgjg07kqquTgjhs5LNz7SehMPY+uvcFPFJeu+QaPQDZgekBYAwKo+zVpMu3oOaC Mbt9HfMATt0xHL+IdMmePOVnzEWA1SOAsCPWYfRDDRz1Cu8EYQo+CGiey40gGoDX9h6b H6NjRXn3cjygvw/F+9B1rUncGWzbmfFVp6O6UWpQvUOCFOf7OBRhnuEUZKJDxx3YG09F 0ETA== X-Gm-Message-State: AHPjjUhx9RPrj4WxHiYsBDHxjNEkr2iNyoM2CiRy8G42dBYGmN4kapzX /eq4G68eks6Jtk8ISLP1kRM+JQ== X-Google-Smtp-Source: ADKCNb6/ZKBbuLlVMcVNTs3W4GgVsYH5u0fmDcvvevIqHp+YZ235t6I5WvKMctQWn4s8lrljq7/K5w== X-Received: by 10.28.54.3 with SMTP id d3mr7052144wma.56.1505113406188; Mon, 11 Sep 2017 00:03:26 -0700 (PDT) Received: from ernst.home (p4FCA62DB.dip0.t-ipconnect.de. [79.202.98.219]) by smtp.gmail.com with ESMTPSA id b127sm7280802wmc.34.2017.09.11.00.03.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 11 Sep 2017 00:03:25 -0700 (PDT) Date: Mon, 11 Sep 2017 09:03:24 +0200 From: Gary Jennejohn To: Mahmoud Al-Qudsi Cc: "freebsd-current@freebsd.org" Subject: Re: SSH from WSL acts as if overwrite were enabled while actually inserting Message-ID: <20170911090324.62f7d0aa@ernst.home> In-Reply-To: References: Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.15.1 (GTK+ 2.24.31; amd64-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 07:03:28 -0000 On Sun, 10 Sep 2017 15:56:14 +0000 Mahmoud Al-Qudsi wrote: > Hello all, > > Sorry about the confusing subject line, it___s the best I could think of to succinctly summarize the issue at hand. I___ve been running into an issue with FreeBSD from 10.x to 12-CURRENT and wanted to check with the mailing list 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=xterm-256color host that has no problem SSHing into Linux machines, the following behavior is observed (regardless of the $TERM value under FreeBSD or the SSH shell I___m logging into). > > 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 behavior is that INSERT was enabled. The actual behavior is the expected behavior, 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-FreeBSD host. > > If this is not a FreeBSD bug, I___ll raise it with the WSL team who have proven to be very earnest in their attempts at fixing all compatibility issues via their GitHub presence. > > (A screenshot of the observed behavior, if it helps: http://i.imgur.com/k6hVtbQ.png ) > Have you tried it with a different shell? Such as /bin/sh rather than fish? -- Gary Jennejohn