mozshellutil — Shell command line parsing and quoting utilities

This module contains utilities for parsing and quoting shell command lines.

exception mozshellutil.MetaCharacterException(char)
mozshellutil.quote(*strings)

Given one or more strings, returns a quoted string that can be used literally on a shell command line.

>>> quote("a", "b")
"a b"
>>> quote("a b", "c")
"'a b' c"
mozshellutil.split(cline)

Split the given command line string.