Sam Malayek
Sam Malayek

Reputation: 3745

What shell does Python's subprocess use?

This question and answer demonstrates how to use Python's subprocess module to interact with bash from Python.

So if subprocess doesn't use the system's default shell, then what shell does it use to run commands like this:

    import subprocess

    print subprocess.check_output(["ls", "-la"])

Upvotes: 3

Views: 415

Answers (1)

Related Questions