ShellEscape

Quote and escape a string so it can be safely passed as a single shell argument.

Synopsis

Declared in <common/system.h>

std::string
ShellEscape(std::string const& arg);

Return Value

The shell-escaped argument.

Parameters

NameDescription
argThe raw argument to escape.