From unknown Sat Aug 16 23:40:55 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24984 <24984@debbugs.gnu.org> To: bug#24984 <24984@debbugs.gnu.org> Subject: Status: Emacs 25.1.1: Problems with file completion in Windows shell Reply-To: bug#24984 <24984@debbugs.gnu.org> Date: Sun, 17 Aug 2025 06:40:55 +0000 retitle 24984 Emacs 25.1.1: Problems with file completion in Windows shell reassign 24984 emacs submitter 24984 "Ulrich Windl" severity 24984 normal tag 24984 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 22 04:12:38 2016 Received: (at submit) by debbugs.gnu.org; 22 Nov 2016 09:12:38 +0000 Received: from localhost ([127.0.0.1]:37766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9781-0007RT-U0 for submit@debbugs.gnu.org; Tue, 22 Nov 2016 04:12:38 -0500 Received: from eggs.gnu.org ([208.118.235.92]:35380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9780-0007RG-GX for submit@debbugs.gnu.org; Tue, 22 Nov 2016 04:12:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c977u-0007kG-2k for submit@debbugs.gnu.org; Tue, 22 Nov 2016 04:12:31 -0500 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c977t-0007kA-Vp for submit@debbugs.gnu.org; Tue, 22 Nov 2016 04:12:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54544) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c977p-0007iO-TA for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2016 04:12:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c977k-0007fc-Tk for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2016 04:12:25 -0500 Received: from rrzmta2.uni-regensburg.de ([194.94.155.52]:48482) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c977k-0007eX-N2 for bug-gnu-emacs@gnu.org; Tue, 22 Nov 2016 04:12:20 -0500 Received: from rrzmta2.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 3009471F12 for ; Tue, 22 Nov 2016 10:12:18 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta2.uni-regensburg.de (Postfix) with ESMTP id 12BD571672 for ; Tue, 22 Nov 2016 10:12:18 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Tue, 22 Nov 2016 10:12:17 +0100 Message-Id: <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.2.1 Date: Tue, 22 Nov 2016 10:12:16 +0100 From: "Ulrich Windl" To: Subject: Emacs 25.1.1: Problems with file completion in Windows shell Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) I think this bug is new compared to Emacs 24.3: Shell completion on MS-Windows does not work correctly. For excample: --- Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. c:\Windows\system32>cd /Users/Ulrich Windl/ cd /Users/Ulrich Windl/ c:\Users\Ulrich Windl>dir dir Datentr=C3=A4ger in Laufwerk C: ist Windows Volumeseriennummer: 42BC-2012 Verzeichnis von c:\Users\Ulrich Windl 17.08.2016 14:10 . 17.08.2016 14:10 .. 04.08.2016 08:21 Application Data 15.03.2016 15:19 Contacts 17.08.2016 14:21 Desktop 18.10.2016 10:21 Documents 22.11.2016 09:49 Downloads 12.10.2016 10:13 Favorites 31.05.2016 12:16 Pictures 20.10.2016 08:23 Videos 5 Datei(en), 4.542 Bytes 20 Verzeichnis(se), 184.763.269.120 Bytes frei --- When I try to complete "cd D", "Documents" is not in the list of possible matches. Instead I see things that are NOT part of the current directory = (but of c:\Windows\system32), like this: Possible completions are: DRVSTORE/ Dism/ DriverStore/ da-DK/ de-DE/ de/ drivers/ From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 22 04:16:30 2016 Received: (at 24984) by debbugs.gnu.org; 22 Nov 2016 09:16:30 +0000 Received: from localhost ([127.0.0.1]:37772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c97Bm-0007Xv-Ef for submit@debbugs.gnu.org; Tue, 22 Nov 2016 04:16:30 -0500 Received: from rrzmta1.uni-regensburg.de ([194.94.155.51]:59846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c97Bl-0007Xi-HO for 24984@debbugs.gnu.org; Tue, 22 Nov 2016 04:16:29 -0500 Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 75CC05814F for <24984@debbugs.gnu.org>; Tue, 22 Nov 2016 10:16:23 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 5F51C4556C for <24984@debbugs.gnu.org>; Tue, 22 Nov 2016 10:16:23 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Tue, 22 Nov 2016 10:16:23 +0100 Message-Id: <58341AF4020000A10002358F@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.2.1 Date: Tue, 22 Nov 2016 10:16:20 +0100 From: "Ulrich Windl" To: <24984@debbugs.gnu.org> Subject: bug#24984: Acknowledgement (Emacs 25.1.1: Problems with file completion in Windows shell) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24984 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) It seems Emacs does not change the directory internally, because when the = shell buffer has prompt "c:\Users\Ulrich Windl\Documents\R>" and I use Cx = C-f to open a file, the directory is "c:/Windows/System32". In all = versions of Emacs I know the default directory is that of the buffer being = visited, so my conclusion is that Emacs maintains the wrong directory for = the buffer. From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 22 10:49:36 2016 Received: (at 24984) by debbugs.gnu.org; 22 Nov 2016 15:49:36 +0000 Received: from localhost ([127.0.0.1]:38477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9DKC-0001ps-7K for submit@debbugs.gnu.org; Tue, 22 Nov 2016 10:49:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c9DKA-0001ph-Rn for 24984@debbugs.gnu.org; Tue, 22 Nov 2016 10:49:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c9DK0-0006cW-0K for 24984@debbugs.gnu.org; Tue, 22 Nov 2016 10:49:29 -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.1 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38291) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c9DJz-0006cS-Sv; Tue, 22 Nov 2016 10:49:23 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4962 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c9DJz-0003Jw-7j; Tue, 22 Nov 2016 10:49:23 -0500 Date: Tue, 22 Nov 2016 17:49:19 +0200 Message-Id: <834m2z8qgw.fsf@gnu.org> From: Eli Zaretskii To: "Ulrich Windl" In-reply-to: <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) Subject: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell References: <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 24984 Cc: 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) > Date: Tue, 22 Nov 2016 10:12:16 +0100 > From: "Ulrich Windl" > > I think this bug is new compared to Emacs 24.3: > Shell completion on MS-Windows does not work correctly. For excample: > --- > Microsoft Windows [Version 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. > > c:\Windows\system32>cd /Users/Ulrich Windl/ > cd /Users/Ulrich Windl/ > > c:\Users\Ulrich Windl>dir > dir > Datenträger in Laufwerk C: ist Windows > Volumeseriennummer: 42BC-2012 > > Verzeichnis von c:\Users\Ulrich Windl > > 17.08.2016 14:10 . > 17.08.2016 14:10 .. > 04.08.2016 08:21 Application Data > 15.03.2016 15:19 Contacts > 17.08.2016 14:21 Desktop > 18.10.2016 10:21 Documents > 22.11.2016 09:49 Downloads > 12.10.2016 10:13 Favorites > 31.05.2016 12:16 Pictures > 20.10.2016 08:23 Videos > 5 Datei(en), 4.542 Bytes > 20 Verzeichnis(se), 184.763.269.120 Bytes frei > --- > > When I try to complete "cd D", "Documents" is not in the list of possible > matches. Instead I see things that are NOT part of the current directory (but > of c:\Windows\system32), like this: > Possible completions are: > DRVSTORE/ Dism/ DriverStore/ > da-DK/ de-DE/ de/ > drivers/ I cannot reproduce this, after trying on 2 different machines, running Windows 7 and XP. 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 12:29:58 2016 Received: (at 24984) by debbugs.gnu.org; 24 Nov 2016 17:29:58 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 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 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 Date: Thu, 24 Nov 2016 19:29:35 +0200 Message-Id: <83a8co6b28.fsf@gnu.org> From: Eli Zaretskii To: "Ulrich Windl" In-reply-to: <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) Subject: Re: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 24984 Cc: 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) [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. From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 24 16:06:04 2016 Received: (at 24984) by debbugs.gnu.org; 24 Nov 2016 21:06:05 +0000 Received: from localhost ([127.0.0.1]:40776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cA1DY-0005UI-Ol for submit@debbugs.gnu.org; Thu, 24 Nov 2016 16:06:04 -0500 Received: from rrzmta1.uni-regensburg.de ([194.94.155.51]:45278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cA1DX-0005Tm-Dg for 24984@debbugs.gnu.org; Thu, 24 Nov 2016 16:06:03 -0500 Received: from rrzmta1.uni-regensburg.de (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 4905A5AE1C for <24984@debbugs.gnu.org>; Thu, 24 Nov 2016 22:05:57 +0100 (CET) Received: from gwsmtp1.uni-regensburg.de (gwsmtp1.uni-regensburg.de [132.199.5.51]) by rrzmta1.uni-regensburg.de (Postfix) with ESMTP id 4BF515A03B for <24984@debbugs.gnu.org>; Thu, 24 Nov 2016 22:05:56 +0100 (CET) Received: from uni-regensburg-smtp1-MTA by gwsmtp1.uni-regensburg.de with Novell_GroupWise; Thu, 24 Nov 2016 22:05:56 +0100 Message-Id: <58376442020000A10002360F@gwsmtp1.uni-regensburg.de> X-Mailer: Novell GroupWise Internet Agent 14.2.1 Date: Thu, 24 Nov 2016 22:05:54 +0100 From: "Ulrich Windl" To: Subject: Antw: Re: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell 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><58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) <83a8co6b28.fsf@gnu.org> In-Reply-To: <83a8co6b28.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24984 Cc: 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) >>> Eli Zaretskii 24.11.16 18.30 Uhr >>> [Please keep the bug address on the CC list.] [...] Is it okay to close this bug report? This nasty bug makes shell-mode practically unusable; why do you suggest = to close the bug? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 25 02:14:33 2016 Received: (at 24984) by debbugs.gnu.org; 25 Nov 2016 07:14:33 +0000 Received: from localhost ([127.0.0.1]:40958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAAiP-00056S-D7 for submit@debbugs.gnu.org; Fri, 25 Nov 2016 02:14:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:36121) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAAiN-00056E-R1 for 24984@debbugs.gnu.org; Fri, 25 Nov 2016 02:14:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAAiE-0005I9-0P for 24984@debbugs.gnu.org; Fri, 25 Nov 2016 02:14:26 -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.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAAiD-0005Hh-TB; Fri, 25 Nov 2016 02:14:21 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2012 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1cAAiD-0003He-6I; Fri, 25 Nov 2016 02:14:21 -0500 Date: Fri, 25 Nov 2016 09:14:11 +0200 Message-Id: <83y4083ubg.fsf@gnu.org> From: Eli Zaretskii To: "Ulrich Windl" In-reply-to: <58376442020000A10002360F@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) Subject: Re: Antw: Re: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell 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><58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) <83a8co6b28.fsf@gnu.org> <58376442020000A10002360F@gwsmtp1.uni-regensburg.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 24984 Cc: 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) > Date: Thu, 24 Nov 2016 22:05:54 +0100 > From: "Ulrich Windl" > Cc: <24984@debbugs.gnu.org> > > Is it okay to close this bug report? > > This nasty bug makes shell-mode practically unusable; why do you suggest to close the bug? Because it isn't a bug in Emacs, it's a user error: cmd.exe requires such names to be quoted. Am I missing something here? From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 25 03:58:36 2016 Received: (at 24984) by debbugs.gnu.org; 25 Nov 2016 08:58:36 +0000 Received: from localhost ([127.0.0.1]:41030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cACL2-0007X6-Kf for submit@debbugs.gnu.org; Fri, 25 Nov 2016 03:58:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:33034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cACL1-0007Wt-1c for 24984@debbugs.gnu.org; Fri, 25 Nov 2016 03:58:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cACKp-0001EH-K1 for 24984@debbugs.gnu.org; Fri, 25 Nov 2016 03:58:25 -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.2 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:57661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cACKp-0001E3-G7; Fri, 25 Nov 2016 03:58:19 -0500 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2113 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1cACKo-0003S4-1I; Fri, 25 Nov 2016 03:58:18 -0500 Date: Fri, 25 Nov 2016 10:58:08 +0200 Message-Id: <83mvgo3pi7.fsf@gnu.org> From: Eli Zaretskii To: "Ulrich Windl" In-reply-to: <5837FD3D020000A10002361A@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) Subject: Re: Antw: Re: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell 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><58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) <83a8co6b28.fsf@gnu.org> <58376442020000A10002360F@gwsmtp1.uni-regensburg.de><58376442020000A10002360F@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de) <83y4083ubg.fsf@gnu.org> <5837FD3D020000A10002361A@gwsmtp1.uni-regensburg.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: 24984 Cc: 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) [Please keep the bug address on the CC list.] > Date: Fri, 25 Nov 2016 08:58:37 +0100 > From: "Ulrich Windl" > > >> This nasty bug makes shell-mode practically unusable; why do you suggest to > > close the bug? > > > > Because it isn't a bug in Emacs, it's a user error: cmd.exe requires > > such names to be quoted. Am I missing something here? > > Yes (reproduction): > c:\Users\Ulrich Windl>cd .. > cd .. > > c:\Users>cd Ulrich Windl/ ### completed from Ul (where is the TAB key being pressed) > cd Ulrich Windl/ ### the command produced by Emacs is without quotes! > > c:\Users\Ulrich Windl>cd Do ### 1: The chdir seems to have succeeded (see prompt) > ### "Do" does not list any completions, because EMacs thinks the directory is different. > c:\Users\Ulrich Windl>cd U ### lets complete Emacs to "Ulrich Windl" again, because it thinks the directory is "C:\Users" > ### When executing the "cd", it failes, od course: > c:\Users\Ulrich Windl>cd Ulrich Windl/ > cd Ulrich Windl/ > Das System kann den angegebenen Pfad nicht finden. > > ### So the shell does things correctly, but Emacs does not. So you expect Emacs to quote such file names automatically? Note that the Windows cmd.exe shell does it automatically only in some cases. For example: C:\>cd Docu TAB produces C:\>cd "Documents and Settings" as you'd expect, but C:\>cd Documents and Settings\My TAB does not, it simply fails to complete. Instead, you need to type this: C:\>cd "Documents and Settings\My TAB i.e. start the file name with a quote. So there's no consistency in what the shell does here, either. > Specifically if EMacs completes a name containing a space without putting quotes around, you cannot complein the shell for it (Compare to BASH: It does the quoting correctly is such a case) What I see in "M-x shell" with Bash (on a GNU/Linux system) is not entirely correct either: $ cd /home/e/eliz/foo TAB produces $ cd /home/e/eliz/foo\ bar\ baz/ which is correct. But $ cd '/home/e/eliz/foo TAB produces this: $ cd '/home/e/eliz/foo\ bar\ baz/' bash: cd: /home/e/eliz/foo\ bar\ baz/: No such file or directory If you try the same from the Bash command line, it does work correctly: Bash completes "'foo " into "'foo bar baz'/", with the closing quote and the slash added. So my conclusion is that completion of such file names in "M-x shell" does not work reliably on Posix hosts, either. I'm okay with leaving this bug report open, with its subject retitled "Completion of file names with embedded white space is broken in 'M-x shell'", if you agree with my analysis. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 10 22:20:57 2019 Received: (at 24984) by debbugs.gnu.org; 11 Nov 2019 03:20:57 +0000 Received: from localhost ([127.0.0.1]:53019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iU0G9-00045R-Bn for submit@debbugs.gnu.org; Sun, 10 Nov 2019 22:20:57 -0500 Received: from host.gofardesign.uk ([208.79.239.190]:53071) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iU0G7-000459-9G; Sun, 10 Nov 2019 22:20:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7gjcqxNDjaZUhem3Qx8ywDWRcrt0ZP8h2iYrPZ5UnIg=; b=EUy6LjuuXWZdjek4gG9RbLzhUe HpRd04jGA5f5wBZ0JgvkR6faNSLRB/uN/UY2hGuVnZHFoq42TDw91D3zGU4YiYswlLlkoZE+nU7pX V56CjWWuqTfEsdpsJN54NFs0baPx+1+c2p+T1cAf/t49I2LWj78vhRKJmLQvzsQPiGzw=; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:38196 helo=localhost) by host.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1iU0Fx-00078M-K6; Sun, 10 Nov 2019 21:20:49 -0600 From: Stefan Kangas To: Eli Zaretskii Subject: Re: bug#24984: Antw: Re: Antw: Re: bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell In-Reply-To: <83y4083ubg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 Nov 2016 09:14:11 +0200") References: <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> <58341A00020000A10002358B@gwsmtp1.uni-regensburg.de> <834m2z8qgw.fsf@gnu.org> <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> <83a8co6b28.fsf@gnu.org> <58376442020000A10002360F@gwsmtp1.uni-regensburg.de> <83y4083ubg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Date: Mon, 11 Nov 2019 04:20:44 +0100 Message-ID: <87a793qesz.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: host.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: host.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 24984 Cc: Ulrich Windl , 24984@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 24984 + notabug close 24984 thanks Eli Zaretskii writes: >> Date: Thu, 24 Nov 2016 22:05:54 +0100 >> From: "Ulrich Windl" >> Cc: <24984@debbugs.gnu.org> >> >> Is it okay to close this bug report? >> >> This nasty bug makes shell-mode practically unusable; why do you suggest to close the bug? > > Because it isn't a bug in Emacs, it's a user error: cmd.exe requires > such names to be quoted. Am I missing something here? More information was requested, but none was given within 3 years, so I'm closing this bug. If this is still an issue, please reopen the bug report. Best regards, Stefan Kangas From unknown Sat Aug 16 23:40:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 09 Dec 2019 12:24:06 +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