str<<EOF
this is the first line
this is the second line
EOF
貌似不能解决缩进问题,
<<EOF 和 <<-EOF 的区别看不到
this is the first line
this is the second line
EOF
貌似不能解决缩进问题,
<<EOF 和 <<-EOF 的区别看不到
本文探讨了在Shell脚本中使用<<EOF与<<-EOF进行多行字符串定义时遇到的缩进问题,并对比了两者之间的区别。

被折叠的 条评论
为什么被折叠?