mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
parse commands in posix mode
If posix=False, quotes are not stripped from parsed tokens.
This commit is contained in:
parent
d9d4d15ee0
commit
44d97848e5
@ -24,7 +24,7 @@ def verify_arg_signature(f: typing.Callable, args: list, kwargs: dict) -> None:
|
||||
|
||||
def lexer(s):
|
||||
# mypy mis-identifies shlex.shlex as abstract
|
||||
lex = shlex.shlex(s) # type: ignore
|
||||
lex = shlex.shlex(s, posix=True) # type: ignore
|
||||
lex.wordchars += "."
|
||||
lex.whitespace_split = True
|
||||
lex.commenters = ''
|
||||
|
Loading…
Reference in New Issue
Block a user