From owner-freebsd-current@freebsd.org Sun Sep 10 16:05:55 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 113FDE1852B for ; Sun, 10 Sep 2017 16:05:55 +0000 (UTC) (envelope-from mqudsi@neosmart.net) Received: from mail-pg0-x230.google.com (mail-pg0-x230.google.com [IPv6:2607:f8b0:400e:c05::230]) (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 D61DA7CF05 for ; Sun, 10 Sep 2017 16:05:54 +0000 (UTC) (envelope-from mqudsi@neosmart.net) Received: by mail-pg0-x230.google.com with SMTP id d8so11580368pgt.4 for ; Sun, 10 Sep 2017 09:05:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=neosmart.net; s=google; h=from:to:subject:thread-topic:thread-index:date:message-id :content-language:mime-version; bh=+giXtuYv43Rjy1PkSjDFsCBMJA3xFZEruIJYzRQlA7A=; b=u6JMrh9/SFL+NCEBho3Tb2lP9/jD2XwCEGGT7nrJd7jBFUlhXJ7dka0bXpLR94K4Sv ojIuhgyawj+R+k/tOfh9tZXnV69mTEiszMDOZhkpvRdQ4XV08fGZl8hMzImQfWdipGDR eFQ6+RoyexfZt0NfD6B43EreXX6xBEAheMzZs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:thread-topic:thread-index:date :message-id:content-language:mime-version; bh=+giXtuYv43Rjy1PkSjDFsCBMJA3xFZEruIJYzRQlA7A=; b=L252XCw6LLrjfhIsvwevQ+PRuJ4q6ETDB/ZekfhWnA2tcJycDQl0rnmcP7Me4laRZS QxJKMbFG7RZWKZh3V2YjfiKU64ou5DNsMwZNtLfcV34gzwl3E0I5AbYvQKgNhu7A59VM wU/sLHQQ4c2kFrCDdU+U3KZvWH1IOIuzPJ1znb+v/BfQxWTj4CYwbmXeiVwqMHjRd63v ZaTVvtrrF+NwgNwThYbUKnOeh52Z4q8UqdG8D7vYR0kYSBRaFY3FMrXdYEokWMTO0iLO ubn1ae5ykoqsob+bVu6A3II+QaS6KT1vIsnemXrCp+f3moiHzWo5imXO3EhMNubzGjLy 3Reg== X-Gm-Message-State: AHPjjUhPfdnbylp8MTLsHzgqfOHcKUA7ukUM7TPietUflE8Lhxj3WLb2 uEhMcvj/u0FtALwrcD9gPA== X-Google-Smtp-Source: ADKCNb6yjTgtVRKrXwh1YudMGvDdt5pdd3yulzunvYHXXaMfGeLXFSkiq17fteNbot9rD8EzvqGMTg== X-Received: by 10.84.131.101 with SMTP id 92mr3943732pld.97.1505059554195; Sun, 10 Sep 2017 09:05:54 -0700 (PDT) Received: from BN6PR22MB0083.namprd22.prod.outlook.com ([40.97.29.149]) by smtp.gmail.com with ESMTPSA id b90sm2788829pfm.17.2017.09.10.09.05.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 10 Sep 2017 09:05:53 -0700 (PDT) From: Mahmoud Al-Qudsi To: "freebsd-current@freebsd.org" Subject: SSH from WSL acts as if overwrite were enabled while actually inserting Thread-Topic: SSH from WSL acts as if overwrite were enabled while actually inserting Thread-Index: AQHTKk1UnvYXqV9bAUuu5hati5M5OA== X-MS-Exchange-MessageSentRepresentingType: 1 Date: Sun, 10 Sep 2017 15:56:14 +0000 Message-ID: Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-MS-Exchange-Organization-RecordReviewCfmType: 0 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Sun, 10 Sep 2017 16:05:55 -0000 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