New submission from Andrew Moise: I expected subprocess.list2cmdline() to convert my list of arguments into a command line which results in behavior equivalent to the Unix exec() functions -- that is, that I can safely pass arbitrary characters to it and it'll make it such that those characters are escaped. It looks to me, though, like it doesn't handle the pipe symbol, so that if I call list2cmdline(['echo', 'foo|bar']), I get the command line 'echo foo|bar' instead of 'echo "foo|bar"' as I would expect.
If this is actually a result of my misunderstanding (or if it's fixed in a more recent version), please accept my apologies. ---------- components: Windows messages: 56534 nosy: [EMAIL PROTECTED] severity: normal status: open title: subprocess.list2cmdline doesn't do pipe symbols type: behavior versions: Python 2.5 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1300> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com