parse_argv


Description:

public bool parse_argv (string command_line, out string[] argvp) throws ShellError

Parses a command line into an argument vector, in much the same way the shell would, but without many of the expansions the shell would perform (variable expansion, globs, operators, filename expansion, etc.

are not supported). The results are defined to be the same as those you would get from a UNIX98 /bin/sh, as long as the input contains none of the unsupported shell expansions. If the input does contain such expansions, they are passed through literally. Possible errors are those from the ShellError domain. Free the returned vector with strfreev.

Parameters:

command_line

command line to parse

argvp

return location for array of args, or null

argcp

return location for number of args, or null

Returns:

true on success, false if error set


Namespace: GLib.Shell
Package: glib-2.0