Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape single quotes while translating dropped Win32 paths
When file/folder is dropped to the terminal, its path is translated and quoted with a pair of single quotes if necessary. However, despite that the Win32 subsystem allows single quote, the terminal control does not escape it. It causes a path containing one or more single quotes incorrect on the POSIX shell context (see Issue #18006 for an example). With this commit, the terminal control escapes a single quote with a valid escape sequence `'\''` (finish quote, print a single quote then begin quote again) when the path translation is required.
- Loading branch information