Skip to content

Explore eliminating POSIX_SHLEX and STRIP_QUOTES_FOR_NON_POSIX #327

@kmvanbrunt

Description

@kmvanbrunt

cmd2 currently defaults to non-POSIX parsing with shlex and strips quotes before passing args to functions.

The basic difference between POSIX and non-POSIX parsing rules in shlex deals with how quotes are processed. See https://docs.python.org/3/library/shlex.html#parsing-rules for more details.

Previously it was decided to default to non-POSIX since the quoting rules are more intuitive.
From a maintenance perspective, it would be nice to have 1 parsing behavior for our shell and not try to emulate multiple shells. This is especially true when trying to parse tokens for tab-completion.

Are you OK if I remove these flags and preserve the default behavior?

Thoughts? @tleonhardt @kotfu

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions