Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> import shlex
- >>> x = '/usr/bin/yum update --exclude="foo bar baz*"'
- >>> print shlex.split(x)
- ['/usr/bin/yum', 'update', '--exclude=foo bar baz*']
- >>> print shlex.split(x,posix=False)
- ['/usr/bin/yum', 'update', '--exclude="foo', 'bar', 'baz*"']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement