或者,有关强大的文件名处理和在 shell 脚本中传递的其他字符串的介绍性指南。
我写了一个 shell 脚本,它在大多数情况下运行良好。但它在某些输入(例如某些文件名)上窒息。
我遇到了如下问题:
hello world
hello
world
\[*?
'
"
\
这是怎么回事,我该如何解决?
shell bash shell-script quoting whitespace
bash ×1
quoting ×1
shell ×1
shell-script ×1
whitespace ×1