Skip to content
This repository has been archived by the owner on May 19, 2022. It is now read-only.

msys-style cmdline processing heuristics #8

Open
Artoria2e5 opened this issue May 10, 2016 · 3 comments
Open

msys-style cmdline processing heuristics #8

Artoria2e5 opened this issue May 10, 2016 · 3 comments
Assignees

Comments

@Artoria2e5
Copy link

Artoria2e5 commented May 10, 2016

Just an idea on converting the arguments in a more Linux-ish way: http://www.mingw.org/wiki/Posix_path_conversion

(Since this mangles stuff, consider allowing for a env var to disable it.)

@Artoria2e5 Artoria2e5 changed the title msys-style cmdline processing msys-style cmdline processing heuristics May 10, 2016
@xilun
Copy link
Owner

xilun commented May 10, 2016

Thanks for the idea, that would be a good thing to not invent new rules incompatibles with other tools, so I'll consider implementing it. (Any patch would also be welcome)

@xilun xilun self-assigned this May 15, 2016
@xilun
Copy link
Owner

xilun commented May 28, 2016

I'm not sure about when conversion is automatically performed by current toolsets. I've just tried launching explorer on a directory (using various ways to address it) from cygwin and git bash, and neither appears to have automatically translated anything.

@xilun
Copy link
Owner

xilun commented May 28, 2016

Same behavior in MSYS2.

However: the fact that it doesn't work with explorer might simply be a bug, but a rather important one IMO.

Mangling do work in git bash with e.g. cmd //C echo foo=/bar

However Cygwin does not do mangling, so it is unclear if it should be done by default. Given it's based on convoluted heuristics that I'm not sure are even fixed, and has trivial bugs (explorer one) in famous implementations (Git for Windows, MSYS2), I think I will at least not activate it by default if I implement it at all.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants