5 return [s[1] for s in shquote.quotesplit(line)]
9 WVPASSEQ(qst(""" this is basic \t\n\r text """),
10 ['this', 'is', 'basic', 'text'])
11 WVPASSEQ(qst(r""" \"x\" "help" 'yelp' """), ['"x"', 'help', 'yelp'])
12 WVPASSEQ(qst(r""" "'\"\"'" '\"\'' """), ["'\"\"'", '\\"\''])
14 WVPASSEQ(shquote.quotesplit(' this is "unfinished'),
15 [(2,'this'), (7,'is'), (10,'unfinished')])
17 WVPASSEQ(shquote.quotesplit('"silly"\'will'),
18 [(0,'silly'), (7,'will')])
20 WVPASSEQ(shquote.unfinished_word('this is a "billy" "goat'),
22 WVPASSEQ(shquote.unfinished_word("'x"),
24 WVPASSEQ(shquote.unfinished_word("abra cadabra "),
26 WVPASSEQ(shquote.unfinished_word("abra cadabra"),
29 (qtype, word) = shquote.unfinished_word("this is /usr/loc")
30 WVPASSEQ(shquote.what_to_add(qtype, word, "/usr/local", True),
32 (qtype, word) = shquote.unfinished_word("this is '/usr/loc")
33 WVPASSEQ(shquote.what_to_add(qtype, word, "/usr/local", True),
35 (qtype, word) = shquote.unfinished_word("this is \"/usr/loc")
36 WVPASSEQ(shquote.what_to_add(qtype, word, "/usr/local", True),
38 (qtype, word) = shquote.unfinished_word("this is \"/usr/loc")
39 WVPASSEQ(shquote.what_to_add(qtype, word, "/usr/local", False),
41 (qtype, word) = shquote.unfinished_word("this is \\ hammer\\ \"")
42 WVPASSEQ(word, ' hammer "')
43 WVPASSEQ(shquote.what_to_add(qtype, word, " hammer \"time\"", True),