How to invoke bash, run commands inside the new shell, and then give control back to user?

bash --rcfile <(echo '. ~/.bashrc; some_command')

dispenses the creation of temporary files. Question on other sites:

Leave a Comment