cbwin icon indicating copy to clipboard operation
cbwin copied to clipboard

msys-style cmdline processing heuristics

Open Artoria2e5 opened this issue 9 years ago • 3 comments

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 avatar May 10 '16 17:05 Artoria2e5

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 avatar May 10 '16 21:05 xilun

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 avatar May 28 '16 13:05 xilun

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.

xilun avatar May 28 '16 14:05 xilun