3 ms·
The subprocess.run args argument is a list of strings, not a single string with whitespace-delimited parts, so you're all good quotingwise. This is now effortle
by tom_ 2y ago
The subprocess.run args argument is a list of strings, not a single string with whitespace-delimited parts, so you're all good quotingwise. This is now effortlessly a lot better than what you get with bash in terms of how brittle things are!
Supply check=True and the script will barf on subprocess failure. Another useful upgrade.
- KingMob 2y agosubprocess.run() will happily accept a single string, though, so you may still inadvertently run into the issue anyway.
- deleted 2y ago[deleted]