News for hackers. Stuff that matters.
Re:A web server in a shell script by rix0r on Tuesday November 02, 2010 @06:34PM (#1862708)
Well the variable expansion is quoted, so afaik it could only be interpreted as a single argument to cat.
Re:A web server in a shell script by Erwin on Tuesday November 02, 2010 @07:55PM (#1862953)
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`'

Re:A web server in a shell script by js2 on Tuesday November 02, 2010 @09:47PM (#1863255)
But 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.