Skip to content

Shlex tokenizer #5

@anki-code

Description

@anki-code
from shlex import split
split('echo -e "hello world"')
# ['echo', '-e', 'hello world']

Current:

echo 'echo -e "hello world"' | tokenize-output -p
# echo
# hello
# world

Required:

echo 'echo -e "hello world"' | tokenize-output -p
# echo
# hello world
# hello
# world

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions