Skip to content

Use shlex.split to parse command strings - #27

Merged
hyperrealist merged 1 commit into
mainfrom
25-use-shlex-split
Mar 19, 2026
Merged

hyperrealist merged 1 commit into
mainfrom
25-use-shlex-split

Conversation

@JamesOHeaDLS

Copy link
Copy Markdown
Contributor

shlex is part of the Python Standard Library and handles shell-like parsing, including multiple spaces. This prevents empty arguments from being generated when the command contains repeated whitespace

Fixes #25

shlex is part of the Python Standard Library and handles shell-like parsing, including multiple spaces.  This prevents empty arguments from being generated when the command
contains repeated whitespace
@JamesOHeaDLS JamesOHeaDLS self-assigned this Mar 17, 2026

@hyperrealist hyperrealist left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good fix!

@hyperrealist
hyperrealist merged commit 0da00ca into main Mar 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

More than one space between arguments causes error

2 participants