parseCmd (
ctx,
cmdline,
defaults,
)
Parse a command line, and return a dictionary containing
argv, stdin, stdout, stderr, and environ. default for the last for are pulled from the same-named
attributes of the object "defaults"
Supports <, >, >>, 2>, 2>>, | redirection, quoted arguments.
TODO: support VAR=value before command to change environment?
|