this is a complicated bit of twisty scripting. thanks to article here for an approach that actually works for starting bash and keeping it resident, unlike several approaches that i tried: https://unix.stackexchange.com/questions/123103/how-to-keep-bash-running-after-command-execution