unset a
cat <<EOF >/dev/null
${a=NO}
EOF
echo $a BUG