Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<q-args> does not escape backslashes when used with some commands on Windows #9311

Open
Bakudankun opened this issue Dec 9, 2021 · 0 comments

Comments

@Bakudankun
Copy link
Contributor

Steps to reproduce

  1. vim --clean
  2. :sourse next script
command! -nargs=? MyCd cd `=<q-args> ?? $HOME`
MyCd Desktop\
  1. Vim raises:
E114: Missing quote: "Desktop\" ?? $HOME
E480: No match: `="Desktop\" ?? $HOME`

This seems to be Windows-specific.

Expected behaviour

<q-args> is expanded into "Desktop\\" and :cd Destop\ is executed.
E344 should be raised if Desktop directory does not exist.

Operating system

Windows 10 Pro 21H2

Version of Vim

8.2.3750

Logs and stack traces

No response

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

No branches or pull requests

1 participant