Double quotes are more permissive than single quotes and allow the evaluation of the $ and ` itself.

Double quotes are more permissive than single quotes and allow the evaluation of the $ and ` itself.
A. True
B. False
 
Answer: a
Explanation: When a command argument is enclosed in single quotes, the meaning of all enclosed special characters is turned off. But when we enclose the same in double quotes, we cannot protect the $ and ` (backquote). For example,
Code:
$ echo ‘$SHELL’      // displays $SHELL
$ echo “$SHELL”     // evaluates $SHELL and then display
 

Tìm kiếm

Back
Top