Bill Janssen wrote:
I'm actually not passing file names. I'm passing argument strings,
which may contain spaces, quotes, and other things. For instance,
myprogram --title=That's the game! says Mike Hammer Brotsky --file=...
myprogram is a Python program, and expects to get the whole
Tim Roberts t...@probo.com wrote:
Bill Janssen wrote:
I'm actually not passing file names. I'm passing argument strings,
which may contain spaces, quotes, and other things. For instance,
myprogram --title=That's the game! says Mike Hammer Brotsky
--file=...
myprogram is a
On Fri, May 21, 2010 at 15:03, Bill Janssen jans...@parc.com wrote:
Anyone know if the quote() function in the pipes module does the right
thing for cmd.exe pipes?
If not, what is the right thing?
twisted.python.win32 has a couple functions that try very hard to get
the quoting right.
Bill Janssen wrote:
myprogram --title=That's the game! says Mike Hammer Brotsky --file=...
Since
cmd.exe also supports pipelines, I'd sort of expect it to do the right
thing on Windows, too.
Don't know about later versions, but in Python 2.5 the pipes
module is listed under Unix
Anyone know if the quote() function in the pipes module does the right
thing for cmd.exe pipes?
If not, what is the right thing?
Bill
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Bill Janssen wrote:
Anyone know if the quote() function in the pipes module does the right
thing for cmd.exe pipes?
No, it doesn't. It uses sh rules, which aren't the same.
If not, what is the right thing?
Unfortunately, command line parsing in Windows is not centralized in the
shell.
Tim Roberts t...@probo.com wrote:
Bill Janssen wrote:
Anyone know if the quote() function in the pipes module does the right
thing for cmd.exe pipes?
No, it doesn't. It uses sh rules, which aren't the same.
If not, what is the right thing?
Unfortunately, command line parsing