Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Git Bash pulls in user PATH, but not System PATH (e.g. node.js binaries) #112

mcandre opened this Issue · 7 comments

3 participants


Git Bash is correctly pulling in directories from the current user's PATH, but it neglects to pull in System PATH, where such things as Node.js node and npm may be placed in Windows XP.


At least on my Windows 7 that's definitely not the case, the PATH inside Git Bash contains the union of system and user PATH. In fact, any normal application that asks for the PATH environment variable on Windows automatically gets the the union of system and user PATH returned by the Windows API, so I have my doubts that what you claim is correct.


Can you reproduce in Windows XP?


No, I don't have access to a Windows XP machine anymore.


@mcandre you kept us pretty busy lately with all your questions. I still wait on feedback for a couple of responses.

In this particular case, you are definitely in the best position to give it a try to fix it yourself. It is even very easy: just insert "set -x" into /etc/profile and do a little homework.

Looking forward to a well-crafted Pull Request.


@dscho When I add set -x to /etc/profile, bash prints out a ton of text before my prompt.

+ cd '/c/Documents and Settings/apenneba/Desktop'
++ __git_ps1
+++ __gitdir
+++ '[' -z '' ']'
+++ '[' -n '' ']'
+++ '[' -n '' ']'
+++ '[' -d .git ']'
+++ git rev-parse --git-dir
++ local g=
++ '[' -n '' ']'
apenneba@NIC-WKS01 ~/Desktop

For sure not! We don't want to clutter everybody's shell with debug output by default.

So, to conclude this, did you resolve the issue on your end? What was the problem?


Closing due to missing feedback from @mcandre.

@sschuberth sschuberth closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.