parseExecString

Convenient function used to unquote and unescape Exec value into an array of arguments. Note: Parsed arguments still may contain field codes that should be appropriately expanded before passing to spawnProcess.

@trusted pure
string[]
parseExecString
(
string execString
)

Throws

DesktopExecException if string can't be unquoted.

Examples

assert(equal(parseExecString(`"quoted cmd" new\nline "quoted\\\\arg" slash\\arg`), ["quoted cmd", "new\nline", `quoted\arg`, `slash\arg`]));

See Also

unquoteExecString, unescapeExecArgument

Meta