New submission from Patrick [EMAIL PROTECTED]:
When using wildcards as arguments to the processes being spawned by
Popen, it seems to interpret them as hard literals.
IE, when doing something like:
import subprocess
output = subprocess.Popen(['ls', '*'],
Skip Montanaro [EMAIL PROTECTED] added the comment:
The default for Popen objects is to not use the shell, thus
no expansion. Set shell=True in the Popen call:
import subprocess
output = subprocess.Popen(['ls', '*'])
ls: *: No such file or directory
output = subprocess.Popen(['ls', '*'],