> Because a subshell cannot access the global variables of the > parent. >
A subshell can access its parent's variables. foo=bar; ( echo "$foo" ) A sub process cannot, unless the variables are exported. It does not sound like you need to do so here.
> Because a subshell cannot access the global variables of the > parent. >
A subshell can access its parent's variables. foo=bar; ( echo "$foo" ) A sub process cannot, unless the variables are exported. It does not sound like you need to do so here.