[issue2438] subprocess.Popen with wildcard arguments

2008-03-20 Thread Patrick
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', '*'],

[issue2438] subprocess.Popen with wildcard arguments

2008-03-20 Thread Skip Montanaro
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', '*'],