joyent/node — pull request #6314 by mlocati (2013-10-07 09:02:11+00:00)
Title: Add the escapeShellArg function to child_process

When we call external programs via `exec()`, we should escape parameters that may contain special characters.

Let's implement a function that escapes shell arguments.

Supersedes https://github.com/joyent/node/pull/6308