human
How to force os.system() to use bash instead of shell
assistant
Here is some code to force bash interpreter '/bin/bash' to be used instead of shell

os.system('GREPDB="echo 123"; /bin/bash -c "$GREPDB"')

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