Are you annoyed by all the weird error handling characteristics of bash? You might wish to take a look at https://skarnet.org/software/execline/index.html or, if you desire compatibility, https://www.oilshell.org/
@timorl If you want to do standard shell things (like pipes), then Python is cumbersome (and lets you rediscover funny edge cases that are normally handled by the shell -- I'm not aware of a Python library that helps with that).
@robryk Hm, fair. Still, it's a very (surprizingly) niche usecase I feel.