-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
"Open in Terminal" with git bash as default breaks tilde expansion #13782
Comments
Does opening Terminal from the explorer address bar repro the same behavior? ( What do the environment variables look like when:
I know that's a lot, but I'm just looking for anything that's different here, maybe some smoking gun that some env var didn't propogate |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Hi, sorry for the delayed feedback.
I am not sure what other environment variables you're interested in. The problem seems to be that bash gets fed the unexpanded cmd-like |
Alright shoot. I can't repro this on
I wonder if this is a recent regression in git bash. I honestly don't even know the right place to look there. Like, why is Does |
Hi, thanks for caring. I did -ORIGINAL_PATH=/mingw64/bin:/usr/bin:%HOMEDRIVE%%HOMEPATH%/bin:(other entries)
+ORIGINAL_PATH=/mingw64/bin:/usr/bin:/c/Users/Bob/bin:/c/Program Files/WindowsApps/Microsoft.WindowsTerminal_1.14.2281.0_x64__8wekyb3d8bbwe:(other entries) and probably most important -HOME=/c/%HOMEDRIVE%%HOMEPATH%
+HOME=/c/Users/Bob also the PATH contains a couple of I am not sure what's going on with the env vars when starting from the explorer right-click menu, but something is fairly broken. |
Weird. That's a bit like #7204, but it's almost like |
Ok, some new findings: I had the environment variable So most likely Git Bash (or its environment wrapper) has some problems assembling a unix-style However, I am still not sure who is at fault here since everything works fine when I start Windows Terminal regulary. What would be the differences between doing |
I am not really sure if this is a problem of the git bash or Windows Terminal, but here we go:
"defaultProfile": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
is set.~
and things likecd ~
work as well. Everything behaves as expected.cd ~
produces the errorbash: cd: /%HOMEDRIVE%%HOMEPATH%: No such file or directory
and I can't use~
in any command really.Git bash here
from the explorer context menu opens a shell in whichcd ~
works without problems.Versions:
The text was updated successfully, but these errors were encountered: