我一直认为,通过参数扩展,例如$foo,shell $foo在执行命令之前会替换参数的内容.例如,如果我设置了
$foo
foo='`'
为什么呢
ls $foo
有不同的行为
ls `
?
bash shell quoting
bash ×1
quoting ×1
shell ×1