unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
Cc: 24984@debbugs.gnu.org
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	[thread overview]
Message-ID: <83a8co6b28.fsf@gnu.org> (raw)
In-Reply-To: <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de> (Ulrich.Windl@rz.uni-regensburg.de)

[Please keep the bug address on the CC list.]

> Date: Wed, 23 Nov 2016 09:20:35 +0100
> From: "Ulrich Windl" <Ulrich.Windl@rz.uni-regensburg.de>
> 
> >>> Eli Zaretskii <eliz@gnu.org> 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.





  parent reply	other threads:[~2016-11-24 17:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-22  9:12 bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell Ulrich Windl
2016-11-22  9:16 ` bug#24984: Acknowledgement (Emacs 25.1.1: Problems with file completion in Windows shell) Ulrich Windl
2016-11-22 15:49 ` bug#24984: Emacs 25.1.1: Problems with file completion in Windows shell Eli Zaretskii
     [not found]   ` <58355F63020000A1000235CE@gwsmtp1.uni-regensburg.de>
2016-11-24 17:29     ` Eli Zaretskii [this message]
2016-11-24 21:05       ` bug#24984: Antw: Re: Antw: " Ulrich Windl
2016-11-25  7:14         ` Eli Zaretskii
     [not found]           ` <5837FD3D020000A10002361A@gwsmtp1.uni-regensburg.de>
2016-11-25  8:58             ` Eli Zaretskii
2019-11-11  3:20           ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83a8co6b28.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=24984@debbugs.gnu.org \
    --cc=Ulrich.Windl@rz.uni-regensburg.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).