[bash] How to assign a heredoc value to a variable in Bash?