From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Pablo Barbachano Newsgroups: gmane.emacs.bugs Subject: bug#27612: 25.2; invoking term from a remote eshell uses the local path Date: Sat, 15 Jul 2017 00:00:47 +0200 Message-ID: <87vamu65m8.fsf@gmail.com> References: <87shi86nse.fsf@gmail.com> <87r2xlaf1o.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500069677 12892 195.159.176.226 (14 Jul 2017 22:01:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Jul 2017 22:01:17 +0000 (UTC) Cc: 27612@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 15 00:01:12 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 1dW8e3-0002iC-9u for geb-bug-gnu-emacs@m.gmane.org; Sat, 15 Jul 2017 00:01:07 +0200 Original-Received: from localhost ([::1]:39983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW8e6-0003l4-Od for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Jul 2017 18:01:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dW8e1-0003kx-Fy for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 18:01:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dW8dy-0004rY-EP for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 18:01:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36675) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dW8dy-0004rG-AT for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 18:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dW8dx-0001ZL-QK for bug-gnu-emacs@gnu.org; Fri, 14 Jul 2017 18:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pablo Barbachano Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Jul 2017 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27612 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27612-submit@debbugs.gnu.org id=B27612.15000696606016 (code B ref 27612); Fri, 14 Jul 2017 22:01:01 +0000 Original-Received: (at 27612) by debbugs.gnu.org; 14 Jul 2017 22:01:00 +0000 Original-Received: from localhost ([127.0.0.1]:39352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW8dv-0001Yx-Pz for submit@debbugs.gnu.org; Fri, 14 Jul 2017 18:00:59 -0400 Original-Received: from mail-wr0-f180.google.com ([209.85.128.180]:35658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dW8ds-0001Yj-8J for 27612@debbugs.gnu.org; Fri, 14 Jul 2017 18:00:56 -0400 Original-Received: by mail-wr0-f180.google.com with SMTP id k67so72671602wrc.2 for <27612@debbugs.gnu.org>; Fri, 14 Jul 2017 15:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=t4ZmYYg9soLfAvBFg01q3A0Y6RZYtBiHgrZl3ZBbrFg=; b=JGZYcFbYW8w7qqVRLVfFVzMeZ5Rh2aEFQkruTwX1PlYOmMMCctDD4IeojY4JBhCp+h T/XXlR2wJT0r4Os4twPKERGDJUy+W6eHqu4Qvc+9A/VBUj6dH3E+NQa5nKt6hl9qVcKJ WER4d3dZhE90A84ajM5G2CC0JE1wBIOl8eO6xrhAtV9lNlQNRQmd36fWm5gCxe01sDQ/ 3dH+2orGIRrVEyGJ8E/a0D4YIMSJaQoD0Ca5WNrzMwub8zD91L0r91hmnyz4gaVLR8fs E7xCQryj9fksx58IpK4Sgz8KGC9V65MmWK694ZPDUTFOdJuYWYbgLVn1buPnSUI607CA WLhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=t4ZmYYg9soLfAvBFg01q3A0Y6RZYtBiHgrZl3ZBbrFg=; b=oWT39aEELUFtYAIoVN8xrcTZ/mgq/pE5au1ackThMaBGJ0qv3C+HLYlOXf/UGWm75J YHrQItkqaDP9mAjsaZ/hHElv7DtQAPiF9CmmpMBlfG5xAdIbnQTrsN0IyMfPrWke5OZP J/rJY77B7IM2HE580qHcNB6l2CH9UpDfYtD7oE7mFL2PTvIpvYupkTMDPIcVh9Ukvmvy 2b/8OWqvuJxhRGt96pdZDYMXGR8l7vTKiMltzSTzHamgAaG0zXh9a+nbCVN0dzcOcGf6 1+NU+cG6kqyiER6npuw9J3E9mFGS4TNftWtQnwf8W4+SG5RaHdxRY/iL39LsV4A8KgFT yd8g== X-Gm-Message-State: AIVw111WLrtMPRCLiWXZxgUR3mDc++CaA3hWLXG4TOQwIFl2Z3rNzqmt f52YB5Kn4AO1AS4Z X-Received: by 10.223.150.27 with SMTP id b27mr6632924wra.67.1500069649995; Fri, 14 Jul 2017 15:00:49 -0700 (PDT) Original-Received: from hypatia (x4e3118c5.dyn.telefonica.de. [78.49.24.197]) by smtp.gmail.com with ESMTPSA id m196sm3045790wma.17.2017.07.14.15.00.48 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 Jul 2017 15:00:48 -0700 (PDT) In-Reply-To: <87r2xlaf1o.fsf@detlef> 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:134570 Archived-At: Hi Michael, Michael Albinus writes: > That is because term.el is not Tramp-aware. In `term-exec-1', it uses > `start-process' instead of `start-file-process'. I tried that and my dummy test case suddenly worked. So that's enough to make it work, but more complex programs like 'top' or 'ipython' seem to have the output mangled. For example if I now do `term bash` ``` $ echo -e "1" 1 $ echo -e "\r1" 1 ``` So something is going on with how the newlines are interpreted in the terminal. This does not happen if I run them locally. I can try playing with this for some time and maybe send a patch. Thanks for the pointer! -- Pablo