Why does placing `)` beside a here-document delimiter change the result?
I'm trying to capture a multi-line here-document in a Bash variable using command substitution. The backtick version works, but this version behaves unexpectedly: MYDOC=$(cat <<LIST Testing a multi-line…