Shell中的 "" 与 '' 的用法

双引号("):除$, ", ', 和 \ 外,其他的字符串保留。因此,可在("")中实现变量提取和方法执行。

Variable: Yes

Command Substituation: Yes


单引号('):所有的字符均保留。

Variable: No

Command Substitution: No

原文地址:https://www.cnblogs.com/jubincn/p/3381146.html