From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Moore Newsgroups: gmane.emacs.help Subject: Re: Win32 - how do I execute a shell command? Date: Fri, 30 Jul 2004 20:43:17 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <7jslb7sa.fsf@yahoo.co.uk> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091216825 2518 80.91.224.253 (30 Jul 2004 19:47:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Jul 2004 19:47:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 30 21:46:59 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BqdLG-00060G-00 for ; Fri, 30 Jul 2004 21:46:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BqdOV-0005kW-Mm for geh-help-gnu-emacs@m.gmane.org; Fri, 30 Jul 2004 15:50:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!proxad.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: arkenstone.demon.co.uk Original-X-Trace: news.demon.co.uk 1091216588 27913 80.177.167.183 (30 Jul 2004 19:43:08 GMT) Original-X-Complaints-To: abuse@demon.net Original-NNTP-Posting-Date: Fri, 30 Jul 2004 19:43:08 +0000 (UTC) Cancel-Lock: sha1:fpE08xX0UzK1wpKLU8vPKE9H75k= User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (chayote, windows-nt) Original-Xref: shelby.stanford.edu gnu.emacs.help:124561 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19896 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19896 jasonr (Jason Rumney) @ f2s.com writes: > Are you sure the shell doesn't like the forward slashes? Yes. If I replace forward slashes with backslashes, the command works fine. > The Windows command-line will not automatically execute Python > scripts AFAIK, so your command line will either have to start with > the Python interpretor, or "start ", which invokes the Explorer > association. Not true. Both CMD.EXE and 4NT (the shell I am using) have ways of making Python files directly executable (the PATHEXT variable for CMD, and executable extensions for 4NT). The key point is that the *native* path separator is backslash on Windows. Forward slash is supported in the Windows API as an alternative, but it isn't native, and that causes problems. Paul. -- Instant gratification takes too long -- Carrie Fisher