all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Moore <pf_moore@yahoo.co.uk>
Subject: Re: Win32 - how do I execute a shell command?
Date: Fri, 30 Jul 2004 20:43:17 +0100	[thread overview]
Message-ID: <7jslb7sa.fsf@yahoo.co.uk> (raw)
In-Reply-To: uk6wm1oo6.fsf@jasonrumney.net

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

  reply	other threads:[~2004-07-30 19:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-29 21:18 Win32 - how do I execute a shell command? Paul Moore
2004-07-29 21:36 ` Jason Rumney
2004-07-30 19:43   ` Paul Moore [this message]
2004-07-30  7:15 ` Mathias Dahl

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=7jslb7sa.fsf@yahoo.co.uk \
    --to=pf_moore@yahoo.co.uk \
    /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.