Shell中的 "" 与 '' 的用法

it2022-05-08  8

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

Variable: Yes

Command Substituation: Yes

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

Variable: No

Command Substitution: No

转载于:https://www.cnblogs.com/jubincn/archive/2012/11/27/3381146.html


最新回复(0)