3 ms·
Well the variable expansion is quoted, so afaik it could only be interpreted as a single argument to cat.
by rix0r 16y ago
Well the variable expansion is quoted, so afaik it could only be interpreted as a single argument to cat.
- Erwin 16y agoThe 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.