We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Case1
set dstintf "port1" set dstintf port1
Case2
set poolname "ippool jimmylin 168.100.168.11" set poolname 'ippool jimmylin 168.100.168.11'
The text was updated successfully, but these errors were encountered:
>>> import shlex >>> s = 'set service HTTP "HTTPS" "service abc def" \'abc\''
>>> s.split(' ') ['set', 'service', 'HTTP', '"HTTPS"', '"service', 'abc', 'def"', "'abc'"]
>>> shlex.split(string) ['set', 'service', 'HTTP', 'HTTPS', 'service abc def', 'abc']
>>> shlex.split(string, posix=False) ['set', 'service', 'HTTP', '"HTTPS"', '"service abc def"', "'abc'"]
>>> ' '.join(shlex.split(string, posix=False)) 'set service HTTP "HTTPS" "service abc def" \'abc\''
>>> shlex.join(shlex.split(string, posix=False)) 'set service HTTP \'"HTTPS"\' \'"service abc def"\' \'\'"\'"\'abc\'"\'"\'\''
Use shlex.split(string, posix=False)
shlex.split(string, posix=False)
and ' '.join(strings)
' '.join(strings)
Sorry, something went wrong.
No branches or pull requests
Case1
Case2
The text was updated successfully, but these errors were encountered: