Skip to main content

shell_parse_argv

Function shell_parse_argv 

Source
pub fn shell_parse_argv(
    command_line: impl AsRef<OsStr>,
) -> Result<Vec<OsString>, Error>
Expand description

s guaranteed that @argvp will be a non-empty array if this function returns successfully.

When constructing @command_line, quote any filenames or potentially untrusted input using shell_quote().

Free the returned vector with g_strfreev().

§command_line

command line to parse

§Returns

true on success, false if error set

§argvp

return location for array of args