This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pjenvey
Recipients BreamoreBoy, eric.smith, georg.brandl, gjb1002, pjenvey, r.david.murray
Date 2011-03-06.01:29:58
SpamBayes Score 3.1635395e-08
Marked as misclassified No
Message-id <1299374999.35.0.944872322691.issue1724822@psf.upfronthosting.co.za>
In-reply-to
Content
The code I linked to above implements those semantics in pure Python. It follows Microsoft's "Parsing C Command-Line Arguments" rules like CommandLineToArgvW does

Here's updated links, the older links seemed to have broken:

https://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/subprocess.py?r=6636#to566

tests: https://fisheye3.atlassian.com/browse/jython/trunk/jython/Lib/test/test_subprocess_jy.py?r=6464#to41

This code is basically the inverse of subprocess's list2cmdline

I don't mind incorporating this code into the stdlib, but we need to figure out where it would go. There was a discussion on stdlib-sig last year related to this topic, about the need for quoting and unquoting command lines.

We have some of this functionality for posix systems scattered throughout shlex and the pipes module, and then there's subprocess.list2cmdline. I think we could use a new module with all this functionality in one place.
History
Date User Action Args
2011-03-06 01:29:59pjenveysetrecipients: + pjenvey, georg.brandl, gjb1002, eric.smith, r.david.murray, BreamoreBoy
2011-03-06 01:29:59pjenveysetmessageid: <1299374999.35.0.944872322691.issue1724822@psf.upfronthosting.co.za>
2011-03-06 01:29:58pjenveylinkissue1724822 messages
2011-03-06 01:29:58pjenveycreate