X-Loop: help-debbugs@HIDDEN Subject: bug#11607: 24.0.97; Directory tracking and file name completion are confused by names containing spaces in shell-mode running cmdproxy.exe Resent-From: Oleksandr Manzyuk <manzyuk@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 02 Jun 2012 15:26:01 +0000 Resent-Message-ID: <handler.11607.B.133865073623457 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 11607 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11607 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.133865073623457 (code B ref -1); Sat, 02 Jun 2012 15:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 2 Jun 2012 15:25:36 +0000 Received: from localhost ([127.0.0.1]:54754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1SaqCt-00066H-Lo for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 11:25:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48558) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from <manzyuk@HIDDEN>) id 1SaqCq-000662-Ka for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 11:25:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <manzyuk@HIDDEN>) id 1SaqB1-0005y6-I6 for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 11:23:41 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:42605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <manzyuk@HIDDEN>) id 1SaqB1-0005xz-BK for submit <at> debbugs.gnu.org; Sat, 02 Jun 2012 11:23:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <manzyuk@HIDDEN>) id 1SaqAz-0005Df-6A for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 11:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <manzyuk@HIDDEN>) id 1SaqAw-0005xD-M8 for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 11:23:36 -0400 Received: from mail-lpp01m010-f41.google.com ([209.85.215.41]:33824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <manzyuk@HIDDEN>) id 1SaqAw-0005wh-7u for bug-gnu-emacs@HIDDEN; Sat, 02 Jun 2012 11:23:34 -0400 Received: by lahi5 with SMTP id i5so2566284lah.0 for <bug-gnu-emacs@HIDDEN>; Sat, 02 Jun 2012 08:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=G3I5JmNPssmH51A1gsUgo4XSpvA1KEv6OSw164pvUfM=; b=EnLjrjP4hIlEXIURtwZIeJiyRSnnHXezzXwvucuRqRY8AuhNTiMVzlg3ZlC7f7HxE9 wJJfig6eEiZSoDuH4dIqp0E/ilOcRZpJt8aSu2rlBXAg2/LYxRaeDRxEqjB48sCGiB37 zcKQpOyWfEeqX7HUk4iVuI3nvk/3YGNDuZytJFYGJBPWe5w8H8+DD0ur3QUHWDhK2KFT J2NR3UOZzBARWTwxUcLD7IyZaj9udZb7dGKGc6i0VHsQqLfVC+Gsixw6GnC+6+Mye3ik YhVOI3sy7hqt9lXazty3YKougbRShbVI8BofVn/qlMW92/ffJI0ll7zkdZAZWxTiMhmR r+vg== MIME-Version: 1.0 Received: by 10.112.9.106 with SMTP id y10mr3559430lba.65.1338650611405; Sat, 02 Jun 2012 08:23:31 -0700 (PDT) Received: by 10.152.112.231 with HTTP; Sat, 2 Jun 2012 08:23:31 -0700 (PDT) Date: Sat, 2 Jun 2012 16:23:31 +0100 Message-ID: <CAAwZTsR7QLgk47s5GiZOVYqmyE8KE4VFNg3DvrDTXSGcLtOMmw@HIDDEN> From: Oleksandr Manzyuk <manzyuk@HIDDEN> Content-Type: text/plain; charset=UTF-8 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: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://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: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.1 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': This is a Windows-specific bug. I reproduce it as follows in Emacs running on Windows XP, which itself is running in a virtual machine. 1. emacs -Q 2. M-x shell 3. cd c:\ The prompt changes to C:\> 4. M-: default-directory RET displays C:\ 5. cd WINDOWS/Connection Wizard/ Type "cd w", hit TAB, the command should be completed to "cd WINDOWS/", then type "conn" and hit TAB again to get "cd WINDOW/Connection Wizard/". Hit RET. The prompt changes to C:\WINDOWS\Connection Wizard>, but M-: default-directory shows that Emacs still thinks that the current directory is C:\. From this moment on, file name completion is broken: try to type "cd " and hit TAB, and you should get a list of files and directories in C:\. 6. An attempt to resync the current directory with the help of M-x shell-resync-dirs fails: C:\WINDOWS\Connection Wizard>dirs dirs 'dirs' is not recognized as an internal or external command, operable program or batch file. which is understandable because cmd.exe and cmdproxy.exe don't provide "dirs" built-in. I think this issue only manifests itself with directory names containing spaces. A very similar issue was reported 12 years ago: http://lists.gnu.org/archive/html/bug-gnu-emacs/2000-10/msg00031.html but I can't figure out if it was ever assigned a bug number. It doesn't appear to be fixed either. It is also somewhat unfortunate that `shell-resync-dirs' doesn't work on Windows and no sensible default for `shell-dirstack-query' is provided. Note also that the current method of parsing the directory stack from the output of "dirs" in `shell-resync-dirs' doesn't work correctly with directory names containing spaces, even on GNU/Linux. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/Program Files/emacs-24.0.97/etc/DEBUG. In GNU Emacs 24.0.97.1 (i386-mingw-nt5.1.2600) of 2012-05-16 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-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 input: M-x s h e l l <return> c d SPC c : \ <return> c d SPC w i n <tab> c o n n <tab> <return> M-: d e f a u l t - d i r e c t o r y <return> c d SPC <tab> C-a C-k M-x r e p o r t - e m <tab> <return> Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. c:/ "c:/" Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view pcmpl-unix shell pcomplete comint regexp-opt ansi-color ring time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar 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 minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs)
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Oleksandr Manzyuk <manzyuk@HIDDEN> Subject: bug#11607: Acknowledgement (24.0.97; Directory tracking and file name completion are confused by names containing spaces in shell-mode running cmdproxy.exe) Message-ID: <handler.11607.B.133865073623457.ack <at> debbugs.gnu.org> References: <CAAwZTsR7QLgk47s5GiZOVYqmyE8KE4VFNg3DvrDTXSGcLtOMmw@HIDDEN> X-Gnu-PR-Message: ack 11607 X-Gnu-PR-Package: emacs Reply-To: 11607 <at> debbugs.gnu.org Date: Sat, 02 Jun 2012 15:26:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 11607 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 11607: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11607 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.