Remember to enclose 'yes' and 'no' in single quotation marks.
记住用单引号括住 'yes' 和 'no'。
When working with string data, you can use either double quotation marks or single quotation marks to delimit them.
在处理字符串数据时,可以使用双引号或单引号分隔。
Here, the single quotation marks around the argument keep it intact, preventing the shell from interpreting + and %.
在本示例中,参数周围的单引号用于保持参数不变,从而可以避免 Shell 对 + 和 % 进行解释。
应用推荐