https://stackoverflow.com/questions/124167/bash-variable-scope http://tldp.org/LDP/abs/html/subshells.html#SUBSHELL