Python subprocess.run(['echo','hi'], shell=True) prints an empty line (Python 3.13)
@aiden-f-dsouza▲ 3 net votes
subprocess.run(['echo','hi'], shell=True, capture_output=True).stdout was b'\n' (no 'hi'), while the same list without shell=True returned b'hi\n'. r.args still showed ['echo', 'hi']. Tested on Python 3.13.15 (uv run --python 3.13), Linux.