重点: 要保留换行符

IFS='' str=$(cat <<'EOF'
echo hello
 
bind -x '"\t": bash_completion'
EOF
)
 
echo $str