-
-
Notifications
You must be signed in to change notification settings - Fork 143
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
Issue: Slash-prefixed arguments needs to be doubly escaped in msys64/Git Bash #198
Comments
It behaves differently on my machine. Please upgrade to latest gsudo and latest git. |
The way I thought of using it from bash is to use it as You may want go to your gsudo folder and duplicate I'm busy right now to give you a perfect answer... The problem with Msys2 path mangling is that I couldn't find a way to ensure the path is mangled just once. We have 2/3 tools at hand.
There should be a combination of those 3 that should make gsudo prefix transparent to path mangling, but I couldn't find one. It's either making the conversion twice or none. |
Thanks for the hint with the environment variable. EDIT: Actually, thinking about it, this behaviour is undesirable. I would want the slashes to be parsed once, in case I actually want to pass MSYS paths to the program. EDIT 2: It seems that there is an issue with Bash trying to expand the |
Issue Description
Built-in Windows tools like
tasklist
,taskkill
, etc. uses slash-prefixed arguments like/A
,/B
, etc.This is in conflict with Git Bash's parsing magic which converts them to Windows paths, so we need to escape it:
But when using
sudo
, for some reason you need to escape it twice:What is causing this to happen?
Steps to Reproduce
tasklist /?
andtasklist //?
and compare their outputsudo tasklist /?
,sudo tasklist //?
, andsudo tasklist ///?
and compare their outputContext:
The text was updated successfully, but these errors were encountered: