Ravi Sir's Cards › AWS
'single' vs "double"
This comparison card contrasts 'single' and "double". 'single' is described as exact text, no expansion. "double" is described as $var and $( ) expand. The card pairs 'single' with fixed strings, regex, and "double" with messages with variables.
Read card text
What this card says
Quotes
'single'
Exact text, no expansion.
"double"
$var and $( ) expand.
Key points
Cannot hold a single quote.
Escape $ with backslash.
Example
echo '$HOME'
Use when
Fixed strings, regex.
Messages with variables.