March 11, 2014 in answer
if you want to include env variables, you can set those variables in a file, and then
source that file in your script.
in myconfig I could do:
#!/bin/bash EDITOR=emacs JBOSS_HOME=/path/to/jboss/home
then in my shell script:
#!/bin/bash source /path/to/myconfig echo "JBOSS home dir is $JBOSS_HOME"
and that would work.