GNU bug report logs - #27612
25.2; invoking term from a remote eshell uses the local path

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Pablo Barbachano <pablo.barbachano@HIDDEN>; merged with #36748, #44310; dated Fri, 7 Jul 2017 19:47:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 27612 36748 44310. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Merged 27612 36748. Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Severity set to 'wishlist' from 'minor' Request was from Michael Albinus <michael.albinus@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 27612 <at> debbugs.gnu.org:


Received: (at 27612) by debbugs.gnu.org; 15 Jul 2017 07:38:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 15 03:38:56 2017
Received: from localhost ([127.0.0.1]:39511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dWHfE-00025p-Js
	for submit <at> debbugs.gnu.org; Sat, 15 Jul 2017 03:38:56 -0400
Received: from mout.gmx.net ([212.227.17.20]:50659)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1dWHfC-00025Y-Ec
 for 27612 <at> debbugs.gnu.org; Sat, 15 Jul 2017 03:38:54 -0400
Received: from detlef.gmx.de ([212.86.58.84]) by mail.gmx.com (mrgmx103
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LcBPV-1dxOss1uS5-00jXj4; Sat, 15
 Jul 2017 09:38:47 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Pablo Barbachano <pablo.barbachano@HIDDEN>
Subject: Re: bug#27612: 25.2;
 invoking term from a remote eshell uses the local path
References: <87shi86nse.fsf@HIDDEN> <87r2xlaf1o.fsf@detlef>
 <87vamu65m8.fsf@HIDDEN>
Date: Sat, 15 Jul 2017 09:38:46 +0200
In-Reply-To: <87vamu65m8.fsf@HIDDEN> (Pablo Barbachano's message of "Sat,
 15 Jul 2017 00:00:47 +0200")
Message-ID: <87iniu9mk9.fsf@detlef>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:H2EvlRHOt468vx4aoycUcZm3uxIC10tZcfy6q4LduJdlKvoXaqq
 Cmn2rYJiB6Eq1x+b8ipYjpZam8wFpxvLBrf3YgLGj/tPiqCA8hPlSS2nl1z07w3Uulc1em3
 Xul251hXK/6j9cdtOhwjbWtybpSZP4ORDS33jSIHPaqpYBrqC9PE4jDR/Qp6E6Wfe63SoJ5
 FgfEA0AOZU9AA9BfAI7kw==
X-UI-Out-Filterresults: notjunk:1;V01:K0:DGfwlqGp38U=:284dtRPdQUaaZF3pCQtGNF
 KZy+WjgKUmpBCpJwhd5c0foG+PltgwS7vtGhgF/NXFGZTVa6F3ggfQgSBS3yuRQlb9EaTXWuY
 c1Gu/krF8g20y7kXp7nRa7mPu1SXD3Y8WLlzHW562xKRaOS423/rACDqJ2SuThxteKhyJecIz
 MGcNz7bIYPi8rXHTF0dUta/tyDv0X0DQlR7OB0oxNyiLMzOE46O4ChS6iYEkcrJ/qDVHwaQ42
 hIuAYmgOLJCjkmM2P5jkrbo48XyN6PxMs1qWKTFv0gv3k6LqUn2DU61fkjZd3ZjyezttfWdH/
 +i2+Bra4elpkzkHuqt5cunJyK6TJ4Rv3Eks09f5Xmz9B/Mjnfxu9SV6ALRa9329QodRhwlWGa
 oDGgsc4gvVTSzDO0IHKpjg42/iyTP7DNcIwMaGuGxOBamSq0Y5ORyrC9S9ZkYxdCngag96EKQ
 NnQSgRIzqtgjnEk2rV7xZ322PfH1W2VgB6+ku7lHiJH3fYFmHkd8cwUu8tZ6HrZ2Phrv/GUfx
 e32VBYIl7Y0ClEodrFP7qRa8uSlQA01ousSsuHpQiDgyanwY2saNP1jZLXSadKDAXolKUzE8i
 yfuXp1/i2Ioelqs2RbNFBQBAACeAyIaStu3v/sW6Gm+/FGXYH/gJM6BSiPOFyIAj1032RkR0i
 ekhuG310Rz/TJXBpV7e0zlMLMxIUPO39eORtg9yAUMXc5llhm4RqSQ4r3+51cjdAudoCYWp8A
 OjsDOoPYZsegxQOQceNYS6qQ269BxkqLajwzVJXLFle8wUSCwKDVYW7uUiMZ0jjyctUEh8gfL
 xDA0tlBFQILc3tnS6rxUpg/2QCNivNL92RzwkSkz3yWyu0PgLk=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 27612
Cc: 27612 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Pablo Barbachano <pablo.barbachano@HIDDEN> writes:

> Hi Michael,

Hi Pablo,

>> 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.

Sure. "hostnme" just dumps a string, and it doesn't send escape
sequences to the terminal.

> 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.

You might try it. But I believe it is more than just newline
handling. Escape sequences are sent, and the buffer playing the tty is
not prepared for this in the remote case. I would start with the
process-filter.

> Thanks for the pointer!
> --
> Pablo

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27612; Package emacs. Full text available.

Message received at 27612 <at> debbugs.gnu.org:


Received: (at 27612) by debbugs.gnu.org; 14 Jul 2017 22:01:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 14 18:01:00 2017
Received: from localhost ([127.0.0.1]:39352 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dW8dv-0001Yx-Pz
	for submit <at> debbugs.gnu.org; Fri, 14 Jul 2017 18:00:59 -0400
Received: from mail-wr0-f180.google.com ([209.85.128.180]:35658)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pablo.barbachano@HIDDEN>) id 1dW8ds-0001Yj-8J
 for 27612 <at> debbugs.gnu.org; Fri, 14 Jul 2017 18:00:56 -0400
Received: by mail-wr0-f180.google.com with SMTP id k67so72671602wrc.2
 for <27612 <at> 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)
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)
From: Pablo Barbachano <pablo.barbachano@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
Subject: Re: bug#27612: 25.2;
 invoking term from a remote eshell uses the local path
In-Reply-To: <87r2xlaf1o.fsf@detlef>
References: <87shi86nse.fsf@HIDDEN> <87r2xlaf1o.fsf@detlef>
Date: Sat, 15 Jul 2017 00:00:47 +0200
Message-ID: <87vamu65m8.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.8 (--)
X-Debbugs-Envelope-To: 27612
Cc: 27612 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.8 (--)


Hi Michael,

Michael Albinus <michael.albinus@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27612; Package emacs. Full text available.

Message received at 27612 <at> debbugs.gnu.org:


Received: (at 27612) by debbugs.gnu.org; 12 Jul 2017 14:46:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 12 10:46:53 2017
Received: from localhost ([127.0.0.1]:35535 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dVIuj-0005sd-8o
	for submit <at> debbugs.gnu.org; Wed, 12 Jul 2017 10:46:53 -0400
Received: from mout.gmx.net ([212.227.17.21]:63430)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michael.albinus@HIDDEN>) id 1dVIuh-0005sO-Tr
 for 27612 <at> debbugs.gnu.org; Wed, 12 Jul 2017 10:46:52 -0400
Received: from detlef.gmx.de ([213.220.147.117]) by mail.gmx.com (mrgmx101
 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LjN0F-1e5T4t2TLL-00daGE; Wed, 12
 Jul 2017 16:46:44 +0200
From: Michael Albinus <michael.albinus@HIDDEN>
To: Pablo Barbachano <pablo.barbachano@HIDDEN>
Subject: Re: bug#27612: 25.2;
 invoking term from a remote eshell uses the local path
References: <87shi86nse.fsf@HIDDEN>
Date: Wed, 12 Jul 2017 16:46:43 +0200
In-Reply-To: <87shi86nse.fsf@HIDDEN> (Pablo Barbachano's message of "Fri,
 07 Jul 2017 21:37:53 +0200")
Message-ID: <87r2xlaf1o.fsf@detlef>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:uRnxxoVrqxpE5FnJVLZPPsL0QW8rLblpp2JW0NNOjiUBQw5kMZg
 cTEaKQG+8Pae8LjSJ2Wm2JwaieRgZFURN4Z64FP8KDXgR2Pc4olNcRNehGuWOrSZ2q7ZlvU
 3cYoCaPT5AP4EH/jZmVU9r0Y6AFYpX4AI8ADMhXvEH2sN8TpuzRESYUiw9MXRDQkKIo6AKu
 a5uVseSNj7pApVUgXfzew==
X-UI-Out-Filterresults: notjunk:1;V01:K0:Hxqv/oX/O10=:Vb3DK5Vv9SeL2eMTnvMZL0
 uDZcZaV7+Nfiu06Jh2j4ljVoKCn1M+kMl9JVV8184pabduidZ49S97tD3KQZNXPNjaXLQ/vty
 BYpQLCnFk5CAmttt0xaQjvEKAE4sADd4OCdxpHJIBJWYXofviNaGWmNW10uwZOrZqjEzAP2Pw
 Wg8ZDzEFxv6xZwJArx8/9EONAbZ7mLKjVE7oVRNa6nJKMVqcvCCLqj2kyRU719x+E/UiQ6zu3
 KeXsuofUFELikn2zcNdZ9eOBmIeEQccED4e9bfCr9WvCmY5nfC1XzY7qArsJnLqcmdzr61Uzn
 F4FLwFAqVP4gVIDvxWPluqxAsPu9C+c93E5aZd8fKfUcgYb7Fd6eS61pQ2yxlx1q0/Uf+TyYS
 SoHRGFjyVg5As4HX4v7r4H/lIMnx3jUkKUzzszLHKl0+cSVwBDV64m3AYZEZp685758bqf04b
 DbADugw7rbsjX1y1gKUfxwGVcTls8z711/Gchu7aTTu3wwBNAelwpAl8q/tyQ0phzVYLNBH2w
 Swg0veY/GETp4FzYA4HEPIJUjKQ6cLXdA3aMu2IZDTKKOTChg//gWFovFE9fufL3iishvSGrh
 bpSOWvbvkD68xXyS9BZG2OJc8H9ysug1Zr2ABAdJwT+6HUWx2T+DPIDQzGOlN0d1cbvXqXdTG
 nO1lG20bwYw/+SUfhi6B8/tXY6sechzPQGWJtOx7tt7sfpxb3RC7xn+clpc/zTyV62E/5gNJA
 h/AxR/OAvFDsMuqFxOQqdKblKWkQBoYi4g3M885GKFHpppjX2kjRK8rPNFZGNsGQLxtO0TdnM
 108iAQK
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 27612
Cc: 27612 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Pablo Barbachano <pablo.barbachano@HIDDEN> writes:

Hi Pablo,

> M-x eshell
> $ cd /ssh:remote-host:
> $ hostname
> <remote-hostname>
>
> $ term hostname
> <local-hostname>
>
> term does not seem to get the default-directory from eshell.

That is because term.el is not Tramp-aware. In `term-exec-1', it uses
`start-process' instead of `start-file-process'.

One could replace this, but scanning term.el, there seems to be a tight
integration with ange-ftp. So I guess it needs further work to cooperate
with Tramp.

I'm not a term.el user, so I don't know, whether it is a feature to run
always locally. Other people might tell, whether it would be appropriate
to support remoteness.

If yes, I could try to migrate term.el. But this would take time anyway,
understanding 4500 lines of unknown code. And maybe it is not possible
at all to support a full equipped remote terminal in Emacs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#27612; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 Jul 2017 19:46:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 07 15:46:48 2017
Received: from localhost ([127.0.0.1]:57091 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1dTZDE-0002RH-5A
	for submit <at> debbugs.gnu.org; Fri, 07 Jul 2017 15:46:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:36260)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <pablo.barbachano@HIDDEN>) id 1dTZ55-0002FX-BK
 for submit <at> debbugs.gnu.org; Fri, 07 Jul 2017 15:38:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pablo.barbachano@HIDDEN>) id 1dTZ4y-00014v-P5
 for submit <at> debbugs.gnu.org; Fri, 07 Jul 2017 15:38:18 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:49184)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <pablo.barbachano@HIDDEN>)
 id 1dTZ4y-00014m-LQ
 for submit <at> debbugs.gnu.org; Fri, 07 Jul 2017 15:38:16 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:55446)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <pablo.barbachano@HIDDEN>) id 1dTZ4w-0004qr-U5
 for bug-gnu-emacs@HIDDEN; Fri, 07 Jul 2017 15:38:16 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <pablo.barbachano@HIDDEN>) id 1dTZ4t-00011G-01
 for bug-gnu-emacs@HIDDEN; Fri, 07 Jul 2017 15:38:14 -0400
Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:34955)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <pablo.barbachano@HIDDEN>)
 id 1dTZ4s-00010I-LW
 for bug-gnu-emacs@HIDDEN; Fri, 07 Jul 2017 15:38:10 -0400
Received: by mail-wr0-x22d.google.com with SMTP id k67so59922735wrc.2
 for <bug-gnu-emacs@HIDDEN>; Fri, 07 Jul 2017 12:38:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=GIUtP/YfKyKcg5L30alsIo9FSt6LRBweJAcpdsn6ppc=;
 b=F1j2YmwuIAZhbixb63BdbN/IwgT7gJ29u7yWudFWI3cbU7VZl2JIntD/tJiCjDZulL
 iM1+u7IDqo+KFhWMAkMqKhe8NW54JpG28bzKu5mpU/OIDRjICAMceFlm3Gx+wSxXuxlb
 91InzdIV73WwsE5mYq7ltGLKHrSTJXodJgzQaXav6XmZ/NMwnrhR9184v2z+JJkt0uDX
 7Gud0fMlNCHi6HLoPvpDvAdIQDBWhrz/SiEDJSz4EF3rvzvlkekTya6EW4M9QwJCTVpv
 fo2ZPDM+ZmPH/VYXtm46nKxQcZxNwKFOc1KmrGJmZPn6swKjj4eFkhRY1DZw79tHzF7w
 NVjQ==
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:date:message-id:mime-version;
 bh=GIUtP/YfKyKcg5L30alsIo9FSt6LRBweJAcpdsn6ppc=;
 b=L3xzeOzsUZxnLUmld5rE9mKxmU9CH3lL7qDELb20/1UdwGaZd9PsaGrJ+i3yBudU5B
 R/u/YP1Eo8fJcFVsV8YHJVDd2P2BPZeSYzcsV65/Km1y9e3tuImNeR+7vpWGlKz/w2DV
 UQzM8FTMekCO4kC3qLZ8xBmIWv05sldWBLCo4mzfZkHdLu/fjgQmfXYX691hZuESTVpD
 s/L3dCM2fCjQbiBKlfa57ssrUEh8KZwtLqvkBiA+T0mGKxmTtwimafWUNe3zyeljw/pR
 U1AbTdriFDFOnbA/Pk12Q3w3EyFGGpzSabHeK932N4yOBeOid48WiDX6GnraQQHfzeBF
 mqoA==
X-Gm-Message-State: AIVw111mPGGz99XXLSoTMyejd6b941dONJsutyHwlFffGlfHDR4kH0CM
 VWPSijjvND+ixvZT
X-Received: by 10.28.15.8 with SMTP id 8mr278854wmp.80.1499456287604;
 Fri, 07 Jul 2017 12:38:07 -0700 (PDT)
Received: from hypatia (x4dbee0a3.dyn.telefonica.de. [77.190.224.163])
 by smtp.gmail.com with ESMTPSA id p87sm4182312wma.2.2017.07.07.12.38.06
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Fri, 07 Jul 2017 12:38:06 -0700 (PDT)
From: Pablo Barbachano <pablo.barbachano@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.2; invoking term from a remote eshell uses the local path
Date: Fri, 07 Jul 2017 21:37:53 +0200
Message-ID: <87shi86nse.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 07 Jul 2017 15:46:47 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)



M-x eshell
$ cd /ssh:remote-host:
$ hostname
<remote-hostname>

$ term hostname
<local-hostname>

term does not seem to get the default-directory from eshell.

There's a similar unanswered question in emacs stackexchange: https://emacs.stackexchange.com/questions/17862/eshell-visual-commands-with-tramp



In GNU Emacs 25.2.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2017-07-01, modified by Debian built on trouble
Windowing system distributor 'The X.Org Foundation', version 11.0.11902000
System Description:	Debian GNU/Linux testing (buster)

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --with-pop=yes
 --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --with-x=yes --with-x-toolkit=lucid
 --with-toolkit-scroll-bars --without-gconf --without-gsettings
 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs25-xZBDtE/emacs25-25.2+1=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS LUCID X11

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: EShell

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
<f12> is undefined
History item: 128
History item: 1
delete-backward-char: Text is read-only
Mark set
user-error: Beginning of history; no preceding item
user-error: End of history; no default available
user-error: Beginning of history; no preceding item
user-error: End of history; no default available [2 times]
delete-backward-char: Text is read-only

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg
epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils pp
tramp-cache tramp-sh tramp tramp-compat auth-source cl-seq eieio
byte-opt bytecomp byte-compile cl-extra cconv eieio-core cl-macs gv
gnus-util mm-util help-fns help-mode mail-prsvr password-cache
tramp-loaddefs trampver ucs-normalize shell format-spec advice em-unix
em-term term disp-table easymenu ehelp em-script em-prompt em-ls
cl-loaddefs pcase cl-lib em-hist em-pred em-glob em-dirs em-cmpl
em-basic em-banner em-alias pcomplete comint ansi-color ring esh-var
esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell
esh-module esh-mode esh-util time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format
env code-pages mule custom widget hashtable-print-readable backquote
dbusbind inotify dynamic-setting font-render-setting x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 230240 13684)
 (symbols 48 24109 0)
 (miscs 40 62 163)
 (strings 32 28951 6730)
 (string-bytes 1 919448)
 (vectors 16 39668)
 (vector-slots 8 748746 7266)
 (floats 8 283 163)
 (intervals 56 407 0)
 (buffers 976 20))




Acknowledgement sent to Pablo Barbachano <pablo.barbachano@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#27612; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 14 Nov 2020 10:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.