From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10586: 23.3; cd in remote shell reset working directory to local home Date: Tue, 24 Jan 2012 13:19:38 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1327429267 14441 80.91.229.12 (24 Jan 2012 18:21:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 Jan 2012 18:21:07 +0000 (UTC) Cc: 10586@debbugs.gnu.org To: Alberto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 24 19:20:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RpkzH-0007cs-6n for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2012 19:20:55 +0100 Original-Received: from localhost ([::1]:35775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpkzG-0006NC-B0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jan 2012 13:20:54 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:50126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpkzA-0006Mu-5K for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2012 13:20:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rpkz3-0002QN-Mm for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2012 13:20:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rpkz3-0002QC-KG for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2012 13:20:41 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RpkzO-0006zG-3b for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2012 13:21:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jan 2012 18:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10586 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10586-submit@debbugs.gnu.org id=B10586.132742920326779 (code B ref 10586); Tue, 24 Jan 2012 18:21:01 +0000 Original-Received: (at 10586) by debbugs.gnu.org; 24 Jan 2012 18:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:42081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpkyQ-0006xs-NB for submit@debbugs.gnu.org; Tue, 24 Jan 2012 13:20:03 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:44602 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpkyO-0006xQ-PW for 10586@debbugs.gnu.org; Tue, 24 Jan 2012 13:20:01 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rpky2-0006Jn-78; Tue, 24 Jan 2012 13:19:38 -0500 X-Spook: Jyllandsposten Consul Chobetsu KGB asset Crypto AG bce MDA X-Ran: ApasHhcHn@;6)IgI(A#?v+-FjT_m`["R?q(l9ZI@g;_0AgpK.SN57-ouB~;B{}E}egpzli X-Hue: green X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55957 Archived-At: Alberto wrote: > Open a remote folder, e.g. > C-x C-f /onan:bin > Open a remote shell there > M-x shell > Check with pwd that working directory is remote > M-x pwd > Execute in the shell cd > > cd > Check with pwd that working directory is now _local_ home > M-x pwd I can't reproduce this using Tramp's scpc method and don't see how such a thing could even be possible. Is your local home directory even visible on the remote machine? What tramp connection method are you using? Does it happen with `emacs -Q'? > After this happens the only way I found to fix the working directory > is to kill the shell buffer and open it again. Depending on the shell you use, does not 'cd -' take you back to the previous directory?