From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 23 13:51:42 2012 Received: (at submit) by debbugs.gnu.org; 23 Jan 2012 18:51:42 +0000 Received: from localhost ([127.0.0.1]:40983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpOzV-0005JG-L6 for submit@debbugs.gnu.org; Mon, 23 Jan 2012 13:51:42 -0500 Received: from eggs.gnu.org ([140.186.70.92]:43574) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpMOv-0001XP-73 for submit@debbugs.gnu.org; Mon, 23 Jan 2012 11:05:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpMOX-00079i-UH for submit@debbugs.gnu.org; Mon, 23 Jan 2012 11:05:24 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([140.186.70.17]:46973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMOX-00079d-Sh for submit@debbugs.gnu.org; Mon, 23 Jan 2012 11:05:21 -0500 Received: from eggs.gnu.org ([140.186.70.92]:60625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMOR-0006Ib-KU for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 11:05:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpMOL-00077F-7J for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 11:05:15 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:36664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpMOL-000779-3v for bug-gnu-emacs@gnu.org; Mon, 23 Jan 2012 11:05:09 -0500 Received: by iadj38 with SMTP id j38so6211553iad.0 for ; Mon, 23 Jan 2012 08:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=SKY6ADaA9uJ/Tkf7ylm082s41xjqaQ48tpR47SIRh7g=; b=oDab3MlYekDa9owvXyk5PN8zq9e7a3eEdmHjMgIWy7G4Muu38/BRoJunxK+HHaS/79 irHuUIM/frsYqgXIzK0xgLQSQtdt4TYMdyD1XIiuuv+rxf6WJcuOuciCIWvys43NmnCA kIv7SfSpDYy4BB0HRUVhiCOAkqkwuv7DhtNgI= Received: by 10.42.152.65 with SMTP id h1mr8314757icw.50.1327334708185; Mon, 23 Jan 2012 08:05:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.50.94.231 with HTTP; Mon, 23 Jan 2012 08:04:47 -0800 (PST) From: Alberto Date: Mon, 23 Jan 2012 17:04:47 +0100 Message-ID: Subject: 23.3; cd in remote shell reset working directory to local home To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -3.4 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 23 Jan 2012 13:51:40 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your report will be posted to the bug-gnu-emacs@gnu.org mailing list and the gnu.emacs.bug news group, and at http://debbugs.gnu.org. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. =A0If you can, give a recipe starting from `emacs -Q': 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 After this happens the only way I found to fix the working directory is to = kill the shell buffer and open it again. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: =A0 =A0 `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/alin/Software/install/emacs-23.3/share/emacs/23.3/etc/DEBUG. In GNU Emacs 23.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.6) =A0of 2011-12-12 on alin-ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.11004000 configured using `configure =A0'--prefix' '/home/alin/Software/install/emacs-23.3' '--with-x-toolkit=3Dgtk' '--with-crt-dir=3D/usr/lib/x86_64-linux-gnu'' Important settings: =A0 value of $LC_ALL: nil =A0 value of $LC_COLLATE: nil =A0 value of $LC_CTYPE: nil =A0 value of $LC_MESSAGES: nil =A0 value of $LC_MONETARY: nil =A0 value of $LC_NUMERIC: nil =A0 value of $LC_TIME: nil =A0 value of $LANG: en_GB.utf8 =A0 value of $XMODIFIERS: nil =A0 locale-coding-system: utf-8-unix =A0 default enable-multibyte-characters: t Major mode: Shell Minor modes in effect: =A0 shell-dirtrack-mode: t =A0 tooltip-mode: t =A0 mouse-wheel-mode: t =A0 tool-bar-mode: t =A0 menu-bar-mode: t =A0 file-name-shadow-mode: t =A0 global-font-lock-mode: t =A0 font-lock-mode: t =A0 blink-cursor-mode: t =A0 auto-encryption-mode: t =A0 auto-compression-mode: t =A0 line-number-mode: t =A0 transient-mark-mode: t Recent input: C-x C-f / o n a n : b i n M-x s h e p w d M-x p w d c d M-x p w d M-x Recent messages: Tramp: Opening connection for onan using scpc... Tramp: Sending command `exec ssh -q =A0 -o ControlPath=3D/tmp/tramp.16372VjS.%r@%h:%p -o ControlMaster=3Dyes -e none onan' Tramp: Waiting for prompts from remote shell Tramp: Sending command `exec ssh -q =A0 -o ControlPath=3D/tmp/tramp.16372VjS.%r@%h:%p -o ControlMaster=3Dyes -e none onan' Tramp: Found remote shell prompt on `onan' Tramp: Opening connection for onan using scpc...done Directory /scpc:onan:/home/alin/bin/ ~ Directory /home/alin/ Load-path shadows: None found. Features: (shadow sort mail-extr message sendmail ecomplete rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils emacsbug ansi-color dired tramp-imap assoc tramp-gw tramp-gvfs zeroconf url-util url-parse url-vars mm-util mail-prsvr dbus xml tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp regexp-opt auth-source gnus-util netrc time-date advice help-fns advice-preload shell comint ring password-cache format-spec tramp-compat trampver tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 24 13:20:03 2012 Received: (at 10586) by debbugs.gnu.org; 24 Jan 2012 18:20:03 +0000 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 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 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 From: Glenn Morris To: Alberto Subject: Re: bug#10586: 23.3; cd in remote shell reset working directory to local home References: 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-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 24 Jan 2012 13:19:38 -0500 Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10586 Cc: 10586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) 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? From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 03:11:39 2012 Received: (at 10586) by debbugs.gnu.org; 25 Jan 2012 08:11:39 +0000 Received: from localhost ([127.0.0.1]:42542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpxxC-0003Ck-GP for submit@debbugs.gnu.org; Wed, 25 Jan 2012 03:11:39 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:57722 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rpxx9-0003CV-Q4 for 10586@debbugs.gnu.org; Wed, 25 Jan 2012 03:11:36 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rpxwk-0008S4-JG for 10586@debbugs.gnu.org; Wed, 25 Jan 2012 03:11:10 -0500 Resent-Message-ID: <20255.47390.458372.316271@fencepost.gnu.org> Resent-Date: Wed, 25 Jan 2012 03:11:10 -0500 Resent-From: Glenn Morris Resent-To: 10586@debbugs.gnu.org Bcc: rgm@gnu.org X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=YeGSHzw3ri0vIywbQIxz90EzSoOlVhdn6LO5XBbLmVo=; b=uw4av+b1s+mt/6JGBW03dAY8N+msgjPUtcEMIx8juxgW1ty1WKUJP95qz9utQmeVjv nUHxCl9QLlf4Mr2Bl72CnJ129S8ffhcaxMgTW996AKVyYqZeTNqxYx5aYFQ5Fu3RBcku uOtCrXQzqJnSsA/gE1+Z3rd4yDpbXA6hyts7A= MIME-Version: 1.0 In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.210.169 Date: Wed, 25 Jan 2012 09:02:50 +0100 From: Alberto To: Glenn Morris Subject: Re: bug#10586: 23.3; cd in remote shell reset working directory to local home X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10586 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) On 24 January 2012 19:19, Glenn Morris wrote: > Alberto wrote: > >> Open a remote folder, e.g. >> =A0 =A0 C-x C-f /onan:bin >> Open a remote shell there >> =A0 =A0 M-x shell >> Check with pwd that working directory is remote >> =A0 =A0 M-x pwd >> Execute in the shell cd >> =A0 =A0 > cd >> Check with pwd that working directory is now _local_ home >> =A0 =A0 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? I think there is a misunderstanding. Is not the bash shell that believes to be in the local home. But Emacs. What happens is that the shell buffer lose synchronization between the current dir of the shell and the variable that emacs to keep track of it (e.g. the one that is used to auto complete path in the shell). So if you want, typing pwd in the _shell_ gives the correct result, the remote home. M-x pwd instead returns the wrong result (the local home instead of something like /onan:~) > What tramp connection method are you > using? scpc This is my default so in that particular connection is not shown explicitly= . Does it happen with `emacs -Q'? Yes. It does. I run a separate test on a friend machine, the result is the = same. However I did a test with current emacs trunk (24.something). On that one the problem cannot be reproduced. >> 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? That was a good guess in fact, "cd -" gets emacs to go back to the remote h= ome. I've tried again using explicitly scpc. If it can help, emacs prints the new folder as a message after every cd. When I do the procedure above - for cd it is printed ~ - for cd - it is printed /scpc:onan:bin Hope it helps. Regards --=20 Alberto Ingenito From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 03:34:37 2012 Received: (at 10586) by debbugs.gnu.org; 25 Jan 2012 08:34:37 +0000 Received: from localhost ([127.0.0.1]:42562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpyJQ-0003jt-7T for submit@debbugs.gnu.org; Wed, 25 Jan 2012 03:34:37 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:58195 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpyJO-0003jm-4l for 10586@debbugs.gnu.org; Wed, 25 Jan 2012 03:34:35 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RpyIx-0001rF-ER; Wed, 25 Jan 2012 03:34:07 -0500 From: Glenn Morris To: Alberto Subject: Re: bug#10586: 23.3; cd in remote shell reset working directory to local home References: X-Spook: diwn JFK Noriega CipherTAC-2000 wire transfer BCCI X-Ran: WIp!g;J]kmrWCXBxd\aYr=N(I%?7WG;sbU.o%>(m (Alberto's message of "Wed, 25 Jan 2012 09:02:50 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 10586 Cc: 10586@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) (Please keep 10586@debbugs included in replies.) Alberto wrote: > I think there is a misunderstanding. Is not the bash shell that believes to > be in the local home. > But Emacs. > What happens is that the shell buffer lose synchronization between the > current dir of the shell and the variable that emacs to keep track of it > (e.g. the one that is used to auto complete path in the shell). > So if you want, typing pwd in the _shell_ gives the correct result, > the remote home. > M-x pwd instead returns the wrong result (the local home instead of > something like > /onan:~) Oh yes, I overlooked that you said `M-x pwd' rather than just `pwd'. >> What tramp connection method are you >> using? > scpc > This is my default so in that particular connection is not shown explicitly. > > Does it happen with `emacs -Q'? > Yes. It does. I run a separate test on a friend machine, the result is > the same. > However I did a test with current emacs trunk (24.something). > On that one the problem cannot be reproduced. I also can reproduce it in Emacs 23.3, but not in the current trunk, so it looks like this has been fixed. It's not the kind of thing suitable for backporting to the emacs-23 branch at this stage, so the fix will appear in the 24.1 release. From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 25 03:34:57 2012 Received: (at control) by debbugs.gnu.org; 25 Jan 2012 08:34:57 +0000 Received: from localhost ([127.0.0.1]:42565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpyJl-0003kP-3B for submit@debbugs.gnu.org; Wed, 25 Jan 2012 03:34:57 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:58197 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RpyJj-0003kJ-Kc for control@debbugs.gnu.org; Wed, 25 Jan 2012 03:34:55 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RpyJK-0001rn-Hm for control@debbugs.gnu.org; Wed, 25 Jan 2012 03:34:30 -0500 Date: Wed, 25 Jan 2012 03:34:30 -0500 Message-Id: Subject: control message for bug 10586 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) close 10586 24.1 From unknown Tue Jun 24 17:27:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Feb 2012 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator