Skip to content

Windows: If file name on command line starts with space, preceding backslash is lost #371

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Create a file named " testfile.txt" (leading space).
2. Start Vim and pass the file name on the command line, including at least one
   parent directory (i.e. gvim.exe "test\ testfile.txt")

What is the expected output? What do you see instead?
I would expect Vim to open the file. Instead, it swallows the backslash before 
the space and opens "test testfile.txt" as a new file.


What version of the product are you using? On what operating system?
7.4.711 (Cream vanilla), Windows 8.1


Please provide any additional information below.
The same effect occurs when using the shell context menu. The bug is in Vim, 
see below:

C:\test>py -3 -c "import sys; print(str(sys.argv))" "test\ testfile.txt"
['-c', 'test\\ testfile.txt']

Python does not lose the backslash.

Original issue reported on code.google.com by ch...@chrullrich.net on 11 Jun 2015 at 8:35

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions