David Fraser <dav...@sjsoft.com> added the comment: Ah, upon closer inspection - the special parameters $0 $1 $2 etc mentioned in the sh docs refer to parameters within the command string, so that: sh -c 'echo $2 $0 $1' run for "the people" produces: the people run for
So the correct patch would be to leave out the extra parameters and just have the quoted string... The question then becomes, is simple " ".join(args) sufficient or should there be some quoting of them... attaching a patch in the meantime although that needs to be resolved. ---------- Added file: http://bugs.python.org/file14718/subprocess-shell-args-2.6.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6689> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com