I use Python to call cscopeinternally. For this I use subprocess.call.
The problem is that it does not work without shell=True
The following code works as expected:
import subprocess
subprocess.call("cscope -d -L0'temp'", shell=True)
But the following fails, it returns with a status code 0, but there is no way out
import subprocess
subprocess.call(["cscope", "-d", "-L0'temp'"])
Any ideas as to why this is happening?
source
share