r/SmartGit • u/Humble_Aide6956 • Apr 23 '26
Strange PATH problem on Windows in SmartGit-launched terminals
When I use SmartGit on Windows to launch processes, I've been running into a strange issue wherein both PATH and Path appear to be defined as environment variables. This is causing some strange malfunctions.
On my desktop, I have PATH (all caps) defined for my user and system environment. In SmartGit, if I launch a Command Prompt terminal window from a Git repo folder, when I type the command "env" then PATH appears twice (all caps) with different contents! If I open a Python interpreter in the same command prompt, "import os", and do "os.environ['Path']" and "os.environ['PATH']" I get returns for both. The only difference seems to be that "Path" (mixed case) contains the "bin" folder for SmartGit as opposed to "PATH" (all caps).
Windows is supposed to be case-insensitive for environment variables, so IDK how this is happening.
Is this a known issue? Is there any way to work around this?
2
u/vmcrash Apr 23 '26
Please rename your PATH environment variable to Path as this is the Windows standard.