有时候,我看到shell脚本使用所有的引用一些文字,这些不同的方式:"...",'...',$'...',和$"..."。为什么有这么多不同类型的引用被使用?
"..."
'...'
$'...'
$"..."
他们的行为是否有所不同或影响了我在他们内部可以做的事情?
shell bash zsh shell-script quoting
bash ×1
quoting ×1
shell ×1
shell-script ×1
zsh ×1