all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Win32 - how do I execute a shell command?
@ 2004-07-29 21:18 Paul Moore
  2004-07-29 21:36 ` Jason Rumney
  2004-07-30  7:15 ` Mathias Dahl
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Moore @ 2004-07-29 21:18 UTC (permalink / raw)


I have a Python script I want to execute and obtaing the stdout. In
XEmacs, I can do so simply using

    (shell-command-to-string (expand-file-name "~/fortune.py"))

This doesn't work in Gnu Emacs, basically because expand-file-name
returns filenames with *forward* slashes, which the shell doesn't
like.

OK, I could do a global replace of / with \, but that seems like a
hack. Is there a "expand file name in Win32 native format" (ie, with
backslashes) function?

Thanks,
Paul
-- 
A little inaccuracy sometimes saves tons of explanation -- Saki

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-07-30 19:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-07-30  7:15 ` Mathias Dahl

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.