[issue20117] subprocess on Windows: wrong return code with shell=True

eryksun report at bugs.python.org
Tue Jul 15 03:24:42 CEST 2014


eryksun added the comment:

For what it's worth, an explicit "exit" will set the return code to the last error.

    >>> subprocess.call("nonex & exit", shell=True, stderr=subprocess.DEVNULL)          
    9009

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20117>
_______________________________________


More information about the Python-bugs-list mailing list