If I have a variable in backticks is it expanded in the shell or in the subshell? For example:
FOO=BAR
BAZ=`[[ $FOO == BAR ]] && echo 1 || echo 0`
Is it defined when $FOO
is expanded? For example does the subshell see this:
[[ $FOO == BAR ]] && echo 1 || echo 0
or this:
[[ BAR == BAR ]] && echo 1 || echo 0