From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#8132: 23.1; comint shell replaces \ in paths with / Date: Mon, 28 Feb 2011 20:34:04 +0200 Message-ID: <83zkpgm2jn.fsf@gnu.org> References: <4D6A5130.1040107@zvrba.net> <4D6BB83B.20507@zvrba.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1298918295 11431 80.91.229.12 (28 Feb 2011 18:38:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 18:38:15 +0000 (UTC) Cc: 8132@debbugs.gnu.org To: Zeljko Vrba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 19:38:10 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu7yy-0003tv-Hu for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 19:38:08 +0100 Original-Received: from localhost ([127.0.0.1]:45112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu7yx-0003pe-U3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 13:38:07 -0500 Original-Received: from [140.186.70.92] (port=51737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu7xj-0003FQ-UJ for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 13:36:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu7xf-00018g-0L for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 13:36:51 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu7xe-00018R-VA for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 13:36:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pu7vy-00021b-1a; Mon, 28 Feb 2011 13:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2011 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8132 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8132-submit@debbugs.gnu.org id=B8132.12989180517730 (code B ref 8132); Mon, 28 Feb 2011 18:35:02 +0000 Original-Received: (at 8132) by debbugs.gnu.org; 28 Feb 2011 18:34:11 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu7v3-00020Y-LB for submit@debbugs.gnu.org; Mon, 28 Feb 2011 13:34:11 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu7v1-000203-MI for 8132@debbugs.gnu.org; Mon, 28 Feb 2011 13:34:04 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LHC00I00BD9HC00@a-mtaout22.012.net.il> for 8132@debbugs.gnu.org; Mon, 28 Feb 2011 20:33:57 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.183.216]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHC00GDPBKJSMO0@a-mtaout22.012.net.il>; Mon, 28 Feb 2011 20:33:56 +0200 (IST) In-reply-to: <4D6BB83B.20507@zvrba.net> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Feb 2011 13:35:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:44449 Archived-At: > Date: Mon, 28 Feb 2011 15:59:07 +0100 > From: Zeljko Vrba > 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.