How to pick up .bash_profile paths etc

When I run a shell script from Eggplant via the Shell command, it does not load the paths in my .bash_profile. I have been working around it by including it in every script, but it would be better not to do that.

I have set the bash shell to be my default using :

defaults write com.redstonesoftware.Eggplant STShellCommand “/bin/bash”

I thought this would take care of it, but even after restarting Eggplant it does not seem to do the trick.

  1. Should it?
  2. If not, is there another way to load the .bash_profile when executing a shell script?

Thank You.

The domain of the dwrite that you used is from many versions of eggPlant ago. With the correct dwrite, the command would be:

defaults write Eggplant STShellCommand "/bin/bash" 

Start by correcting that, and then let’s see where you are.

Unfortunately, that didn’t solve it either. It still doesn’t understand the paths unless they are defined in the beginning shell script.