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

Name

Description

arg

The raw argument to escape.

Created with MrDocs