Skip to content

Comments must be stripped before calling shlex.split #232

@rgov

Description

@rgov

shlex.split does not understand shell comments. Because of this, a line containing a perfectly valid comment could cause a parse error: shlex.split("# Don't panic") triggers a "No closing quotation" error because of the apostrophe in the comment.

See #214 for a new parser implementation with tests that appears to avoid the issue.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions