[issue1524] os.system() fails for commands with multiple quoted file names

Guy Mott report at bugs.python.org
Fri Nov 30 01:35:54 CET 2007


Guy Mott added the comment:

> Are you sure that the exact command line works in a Windows shell?

Yes, I tried running the exact same command line in a Windows shell and 
it worked fine. Note that the buggy.py script echoes the command line 
and then immediately calls os.system with it. E.g.:

   print "strCmdLine=[%s]" % strCmdLine
   nRtn = os.system(strCmdLine)

I tried running the script in a shell window, watched it fail, then 
immediately cut and pasted the command line that had been echoed out by 
the script to the command line prompt in the same shell, ran it and it 
succeeded.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1524>
__________________________________


More information about the Python-bugs-list mailing list