Message362323
I believe this behavior is expected (at least in posix-land).
Lib/subprocess.py L1702 shows that whenever shell=True, the args that are constructed are [unix_shell, "-c"] + args.
And so we can reproduce your behavior just using a regular shell. (This is Darwin but with a recent bash from homebrew):
$ bash -c 'exit 1' # like subprocess string case
$ echo $?
1
$ bash -c exit 1 # like subprocess list case (note args are separated)
$ echo $?
0 |
|
Date |
User |
Action |
Args |
2020-02-20 15:39:50 | jweese | set | recipients:
+ jweese, nik-sm |
2020-02-20 15:39:50 | jweese | set | messageid: <1582213190.21.0.249466271694.issue39692@roundup.psfhosted.org> |
2020-02-20 15:39:50 | jweese | link | issue39692 messages |
2020-02-20 15:39:49 | jweese | create | |
|