Skip to content
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

pass argument starting with "/", auto add C:/Program Files/Git before in Windows 11 #2300

Open
huyhoang160593 opened this issue Dec 25, 2024 · 2 comments

Comments

@huyhoang160593
Copy link

as title say, When I want to pass the argument like "/home/..." they are not parse as it is but return strange string "C:/Program Files/Git/home/...", and screw up my command action. It's there any way to fix this

OS: Windows 11 (Home Single Language) x86_64
Kernel: WIN32_NT 10.0.26100.2605 (24H2)

@shadowspawn
Copy link
Collaborator

This will be happening in your shell and not in Commander itself. You can check by logging out process.argv to see what got passed in by the shell.

Are you using the Git BASH shell? This old issue has some possible work-arounds if you want to keep using that shell:

https://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line

@huyhoang160593
Copy link
Author

@shadowspawn oh if that the case then maybe I will tried them out, I already have some workaround but they only work on my machine so this is worth checking out. Thank you for your fast response

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

No branches or pull requests

2 participants