在Bash中,单引号('')和双引号("")之间有什么区别?
''
""
syntax bash shell quotes
有人能告诉我是否应该在shell脚本中包含变量的引号?
例如,以下是正确的:
xdg-open $URL [ $? -eq 2 ]
要么
xdg-open "$URL" [ "$?" -eq "2" ]
如果是这样,为什么?
unix linux bash shell quotes
bash ×2
quotes ×2
shell ×2
linux ×1
syntax ×1
unix ×1