From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#24984: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell Date: Thu, 24 Nov 2016 19:29:35 +0200 Message-ID: <83a8co6b28.fsf@gnu.org> References: <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de><58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) <834m2z8qgw.fsf@gnu.org> <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1480008622 29141 195.159.176.226 (24 Nov 2016 17:30:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 24 Nov 2016 17:30:22 +0000 (UTC) Cc: 24984@debbugs.gnu.org To: "Ulrich Windl" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 24 18:30:12 2016 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 1c9xqd-0005rY-Op for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Nov 2016 18:30:11 +0100 Original-Received: from localhost ([::1]:41415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9xqf-0007RR-OG for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Nov 2016 12:30:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9xqW-0007RC-0x for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 12:30:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9xqV-0003PY-5u for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 12:30:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c9xqV-0003PF-1z for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 12:30:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1c9xqU-00009V-Rt for bug-gnu-emacs@gnu.org; Thu, 24 Nov 2016 12:30:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Nov 2016 17:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24984 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24984-submit@debbugs.gnu.org id=B24984.1480008598552 (code B ref 24984); Thu, 24 Nov 2016 17:30:02 +0000 Original-Received: (at 24984) by debbugs.gnu.org; 24 Nov 2016 17:29:58 +0000 Original-Received: from localhost ([127.0.0.1]:40672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xqP-00008p-Te for submit@debbugs.gnu.org; Thu, 24 Nov 2016 12:29:58 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9xqO-00008d-Sv for 24984@debbugs.gnu.org; Thu, 24 Nov 2016 12:29:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9xqF-0003Hc-2E for 24984@debbugs.gnu.org; Thu, 24 Nov 2016 12:29:51 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9xqE-0003HY-Vn; Thu, 24 Nov 2016 12:29:47 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4195 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c9xqE-0006ZU-Aj; Thu, 24 Nov 2016 12:29:46 -0500 In-reply-to: <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:126054 Archived-At: [Please keep the bug address on the CC list.] > Date: Wed, 23 Nov 2016 09:20:35 +0100 > From: "Ulrich Windl" > > >>> Eli Zaretskii schrieb am 22.11.2016 um 16:49 in Nachricht > [...] > > However, the above example shows one potential user error which could > > explain what you see: you don't enclose file names with embedded > > spaces in quotes: > > > >> c:\Windows\system32>cd /Users/Ulrich Windl/ > >> cd /Users/Ulrich Windl/ > > > > The first line should say > > > > c:\Windows\system32>cd "/Users/Ulrich Windl/" > > > > or maybe even > > > > c:\Windows\system32>cd "\Users/Ulrich Windl\" > > > > If you do that, does the problem go away? > > Yes, if I do that, the problem went away! However what I don't understand (still believing it worked before): > c:\Windows\system32>cd /Users/Ulrich Windl/ > cd /Users/Ulrich Windl/ > > The output created by Emacs indicates it understood the argument, when it did not work, but when I do it correctly, the output is the same: > c:\Users\Ulrich Windl\Documents\R>cd "/users/ulrich windl" > cd "/users/ulrich windl" Emacs is much smarter than cmd.exe. More importantly, the directory tracking in shell mode runs before the command is sent to the shell, so it might not figure out that the shell failed. In addition, cmd.exe was silently modified in Windows 7 so that it now recognizes and accepts more dubious commands than before. For example, if you try the unquoted cd command, you will see it succeed, whereas it shouldn't. (It does fails on XP.) I believe this is the reason why you think it used to work in previous versions of Emacs. So there's quite a hodge-podge of subtle issues and marginally (in)correct behaviors here. > And if I do completion in native Windows "cmd", it will place quotes around file names that contain a space. I think Emacs is internally smart enough to handle that case... It deliberately doesn't try to. Is it okay to close this bug report? Thanks.