From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#28139: 25.2; TRAMP vs bash 4.4 / readline 7.0 "bracketed paste" mode Date: Mon, 21 Aug 2017 17:45:53 +0200 Message-ID: <8760dgapqm.fsf@detlef> References: <87mv6vjv6c.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1503330446 2157 195.159.176.226 (21 Aug 2017 15:47:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Aug 2017 15:47:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 28139@debbugs.gnu.org To: Daniel Pittman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 21 17:47:17 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djov7-000066-D3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 17:47:17 +0200 Original-Received: from localhost ([::1]:56035 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djovE-000181-5B for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Aug 2017 11:47:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djoux-00016a-FK for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 11:47:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djous-0000C5-Jd for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 11:47:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djous-0000C1-G4 for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 11:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djous-0001ex-03 for bug-gnu-emacs@gnu.org; Mon, 21 Aug 2017 11:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Aug 2017 15:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28139-submit@debbugs.gnu.org id=B28139.15033303636292 (code B ref 28139); Mon, 21 Aug 2017 15:47:01 +0000 Original-Received: (at 28139) by debbugs.gnu.org; 21 Aug 2017 15:46:03 +0000 Original-Received: from localhost ([127.0.0.1]:48028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djotu-0001dN-Tb for submit@debbugs.gnu.org; Mon, 21 Aug 2017 11:46:03 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:54646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1djott-0001co-Kg for 28139@debbugs.gnu.org; Mon, 21 Aug 2017 11:46:02 -0400 Original-Received: from detlef.gmx.de ([213.220.149.52]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0M4kfR-1dMgVY3rH3-00yuts; Mon, 21 Aug 2017 17:45:54 +0200 In-Reply-To: (Daniel Pittman's message of "Mon, 21 Aug 2017 11:19:31 -0400") X-Provags-ID: V03:K0:e29WE5VRt5dsjGcLvD7bmS5n63/3ccKgYBLLmepkAxVQYr1y5Ua jc2vwYL14pwm/HuYTyVDk1J+kLvAJdo9YaXtoeeVM7o0BSHpIui138JXXdY6SGtQkc5WSNE P+q1sKMYyJwaaEQsdSzWiYvKWc4vQqlFbZ+0UCQ5aDqHSO3WIySO2CYbMrzLVUJuJ1cqEXq pBRqpLaeiQMiGffEuAs3w== X-UI-Out-Filterresults: notjunk:1;V01:K0:ERTpHTvttuI=:1t3//oAL+Ucp/mKV+/Tjgd 8DKq1B5EX7R9j19O3zrSSP2cq0iT07pFEMIL/PDDyHoC5wMpIBfd56ga+EUs+QjxosBBP21hJ 7UiDS7g2+4vev9qGzf2Uks+b62beSMIUonX5jl2dg/BIq8v/f/8RRVaIMtzfYDef+KpLyRKMJ mURoP6/amniIojswAlQCwpQlccdGfBnHP4huN3CHnQhaguzniPZGiSJ+SGDQ8enpgsoc3UGGY aUXX72u1omoaQ/9LvPW8h2Qm7apsu+hO/3D+FF6ypbq9SKwuXtH7tEm9AS1+moz8mLVnv65wh DZ7SFXklxWQYkK2j+4WQFDhibebnzBRdEX66GcDnuBaohZy+sjy9l03OXpg9jvdI2x9pY7CUI Jkquq40wHYCW9o6Gj8txnUQVyjzY9cFUB8KDuV3AvxvoGf/dmgKQaD43i0vVzn3jkKLZjI/0K hgjueA1vCq5mPieIp86TKNdLksv/gz4YZ4rjzjtyQsyU02Wn4VvN+OEISr+xiBf9fQ+xakE+R ni7Z68UNgCHkuowIe21aBHB2w7jI1U1sOaN1pMzCTrX3TvUQd3LAuHOGPsyy3Hl9pFvucXzEL pGbzjMvYlHE3HgGFYRIjexNNV2qIgY95VFUFoiCeK3InYZgne6D7WzoTM8MW8J7Ncz7Q9hwNr JM1s8R0CM/AQ9XZWmxrNiiplUo3V591zLEWUzjuj6cN/m4JvlOruFQmSckIK3GD3CDHsBni3j 0xVgmRuRtstoVhLENjpxUMiYezWWJyx4AlCW5mvPzc8EYJa0RjUt9LXHEV7sMK1ulnlWnYgC X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:136002 Archived-At: Daniel Pittman writes: Hi Daniel, > So, it's not possible to work around this issue without injecting > additional code into the shell setup process, using `/bin/sh - > -noediting`, or using an interactive shell and adding that to the . > profile or equivalent. > > note: --noediting has been present since bash 2.0 according to their > changelog, so it may be reasonable to add by default to the > non-interactive shell invocations. > > Ultimately, though, perhaps adding the ability to run additional > commands during the interactive shell setup process and/or consuming > any CSI sequences prior to matching, would be a more future-proof > solution to this. Well, we have `tramp-sh-extra-args' for ages. But this doesn't work usually, because I don't know a bullet-proof way to detect a bash shell prior invocation, unless "*bash" is called. Let me contemplate about. With Emacs 26 / Tramp 2.3, we have connection-local variables. Maybe we could use it for your case. Best regards, Michael.