We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
GitHub fields:
assignee = None closed_at = <Date 2008-03-21.01:10:54.611> created_at = <Date 2008-03-20.20:38:31.815> labels = ['type-bug', 'library'] title = 'subprocess.Popen with wildcard arguments' updated_at = <Date 2008-03-21.01:10:54.535> user = 'https://bugs.python.org/pbrandt'
bugs.python.org fields:
activity = <Date 2008-03-21.01:10:54.535> actor = 'skip.montanaro' assignee = 'none' closed = True closed_date = <Date 2008-03-21.01:10:54.611> closer = 'skip.montanaro' components = ['Library (Lib)'] creation = <Date 2008-03-20.20:38:31.815> creator = 'pbrandt' dependencies = [] files = [] hgrepos = [] issue_num = 2438 keywords = [] message_count = 2.0 messages = ['64204', '64228'] nosy_count = 2.0 nosy_names = ['skip.montanaro', 'pbrandt'] pr_nums = [] priority = 'normal' resolution = 'works for me' stage = None status = 'closed' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue2438' versions = ['Python 2.4']
The text was updated successfully, but these errors were encountered:
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', '*'], stdout=subprocess.PIPE).communicate()[0] ls: *: No such file or directory >>>
Sorry, something went wrong.
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', '*'], shell=True) >> configure.out svn-stat.out svn-update.out
Skip
No branches or pull requests
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: