I need a special shell environment set up to interact with an commercial application that we have purchased. The environment is queried "on the fly" from the application.
So I've attempted to start the shell with a script that has commands passed to it.
/bin/bash -c '/opt/xyq/commercialApp/bin/tool getEnv > ~/setAppEnv; . ~/setAppEnv; . ~/setMyEnv;'
This works... I get the special environment, source it, and then source my own environment... but then the shell exits.
How do I get it to stay within that second bash shell until I exit?