substack/node-shell-quote — pull request #13 by danielbeardsley (2014-12-10 19:54:40+00:00)
Title: Fix quote() with special chars

Add some failing tests and fix them

I noticed that `'echo ' + quote(["'#"])` => `echo "\'\#"`
which produces: `\'\#` when run in bash, which is wrong.

We are escaping lots of things inside double-quotes that we don't need
to, which ends up including the \ before each escaped char.