all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Zeljko Vrba <zvrba.external@zvrba.net>
Cc: 8132@debbugs.gnu.org
Subject: bug#8132: 23.1; comint shell replaces \ in paths with /
Date: Mon, 28 Feb 2011 20:34:04 +0200	[thread overview]
Message-ID: <83zkpgm2jn.fsf@gnu.org> (raw)
In-Reply-To: <4D6BB83B.20507@zvrba.net>

> Date: Mon, 28 Feb 2011 15:59:07 +0100
> From: Zeljko Vrba <zvrba.external@zvrba.net>
> Cc: 8132@debbugs.gnu.org
> 
> On 2011-02-28 4:32 AM, Stefan Monnier wrote:
> >> On Windows 7 (64-bit mod), run M-x shell, and try to do any filename
> >> expansion.  All backslashes (even
> >> manually typed!) are converted to forward slashes upon tab-expansion.
> >
> > Yes, that's the expected behavior.  Could you explain why it's
> > a problem?
> >
> It is a problem because commands built in to cmd.exe (and also external 
> commands) interpret slash as a command-line switch character.  So you 
> end up with the following situation:
> 
> --> comint expanded \ to / : del ../lpeg-0.10.2/re.html
> Invalid switch - "lpeg-0.10.2".
> 
> In short, it breaks all native windows command-line tools.

Do you really need cmd.exe as your shell inside Emacs?  What cmd
features do you depend on?

If you just need an interactive shell session within Emacs, I suggest
to try eshell instead.  Its command work just fine with forward
slashes.






  parent reply	other threads:[~2011-02-28 18:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27 13:27 bug#8132: 23.1; comint shell replaces \ in paths with / Zeljko Vrba
2011-02-28  3:32 ` Stefan Monnier
2011-02-28 14:59   ` Zeljko Vrba
2011-02-28 15:47     ` Lennart Borgman
2011-02-28 17:47       ` Zeljko Vrba
2011-02-28 17:57         ` Lennart Borgman
2011-02-28 22:05           ` Zeljko Vrba
2011-02-28 22:32             ` Lennart Borgman
2011-02-28 18:34     ` Eli Zaretskii [this message]
2011-02-28 22:10       ` Zeljko Vrba
2011-02-28 23:04       ` Stefan Monnier
2011-03-01  3:54         ` Eli Zaretskii
2011-03-01  4:48           ` Stefan Monnier
2011-03-01  7:06           ` zvrba
2011-03-01  9:02           ` Michael Albinus
2011-03-01 18:27             ` Eli Zaretskii
2011-03-02  8:42               ` Michael Albinus
2011-03-02 18:41                 ` Eli Zaretskii
2011-03-03  9:31                   ` Michael Albinus

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

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

  git send-email \
    --in-reply-to=83zkpgm2jn.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=8132@debbugs.gnu.org \
    --cc=zvrba.external@zvrba.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.