Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Tim Roberts
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

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-24 Thread Bill Janssen
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

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-23 Thread Waldemar Osuch
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.

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-22 Thread Greg Ewing
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

[python-win32] does pipes.quote() work properly on Windows?

2010-05-21 Thread Bill Janssen
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

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-21 Thread Tim Roberts
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.

Re: [python-win32] does pipes.quote() work properly on Windows?

2010-05-21 Thread Bill Janssen
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