Skip to content

Revert "Use shlex.quote for quoting shell arguments"#1543

Merged
davidism merged 1 commit into7.xfrom
revert-shlex-quote
Apr 27, 2020
Merged

Revert "Use shlex.quote for quoting shell arguments"#1543
davidism merged 1 commit into7.xfrom
revert-shlex-quote

Conversation

@davidism
Copy link
Member

@davidism davidism commented Apr 27, 2020

This caused issues if the pager/editor command had options like less -FRSX, they would then get quoted as a single word rather than less then -FRSX.

shlex.quote doesn't seem to do the right thing on Windows cmd. Using shlex.split on the command first wouldn't help, as it would need to get re-joined and subprocess.list2cmdline is not an external API. Let's hold off until #1476 instead.

Reverts #1470
Closes #1514

This reverts commit e798f64.

This caused issues if the editor command (etc.) had options like
"less -FRSX" because they would then get quoted as a single word.
@davidism davidism added this to the 7.1.2 milestone Apr 27, 2020
@davidism davidism merged commit 25a3cb2 into 7.x Apr 27, 2020
@davidism davidism deleted the revert-shlex-quote branch April 27, 2020 19:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant