我确实用谷歌搜索过这个话题,所有结果都在谈论<<EOF。但是我看到脚本使用<<-EOF,但我无法通过谷歌搜索找到任何内容。因此,bash 脚本<<-EOF和<<EOFbash 脚本之间有什么不同?非常感谢。
<<EOF
<<-EOF
bash here-document
bash ×1
here-document ×1