human
How to force os.system() to use bash instead of shell
assistant
Here is some code to run a command `echo hello world` in bash instead of shell

os.system('/bin/bash -c "echo hello world"')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.