Word description Splits a string like Python's shlex.split(string, comments, posix). With comments enabled, unquoted # starts a comment through the next newline. POSIX mode recognizes backslash escapes outside single quotes; inside double quotes only a double quote or backslash loses its escape. Non-POSIX mode retains quotes, recognizes them only at the start of a token, ends a token at a closing quote, and treats backslashes literally.
Errors Throws shlex-unclosed-quote for an unmatched quote and shlex-missing-escape for an unfinished POSIX escape.