4 ms·
The double quote quoting, while allowing you to do e.g. rm "file with spaces" still expands $ and `. Compare: echo none:`date` echo double: "`date`" echo sin
by Erwin 16y ago
The double quote quoting, while allowing you to do e.g. rm "file with spaces" still expands $ and `. Compare:
echo none:`date`
echo double: "`date`"
echo single: '`date`'
- js2 16y agoBut it doesn't expand recursively, so "$var" is safe to protect against special characters in var. That said, one should really read one's shell's documentation, because there be dragons.