With
# !/bin/bash
VAR=aaa VAR=${VAR}:bbb bash -c 'echo ${VAR}'
Your result will depend on the version of bash you are running:
bash3:
(Sometimes. Try doing
echo $VAR; VAR=aaa VAR=${VAR}:bbb bash -c 'echo ${VAR}'
to see a different result on OSX)
bash4:
Either way it's great shellcheck warns about this unstable behaviour!
With
Your result will depend on the version of bash you are running:
bash3:
(Sometimes. Try doing
to see a different result on OSX)
bash4:
Either way it's great shellcheck warns about this unstable behaviour!