Skip to content

XP: Comment - Path /usr/local/bin:/usr/bin:/bin: isn't on XP #57

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

Closed
PhilipOakley opened this issue Mar 30, 2015 · 1 comment · Fixed by git-for-windows/build-extra#17

Comments

@PhilipOakley
Copy link

While testing on my little XP netbook I noticed that the echo $PATH has moved relative to the old MsysGit, so that my personal little BringUptodate script wasn't found. This is with the install from issue #42.

Philip@PhilipOakley MINGW32 ~
$ !Br
BringGitUptodate.sh
bash: BringGitUptodate.sh: command not found`

i.e. (new)

Philip@PhilipOakley MINGW32 ~
$ echo $PATH
/mingw32/bin:/usr/local/bin:/usr/bin:/bin:/d/Program Files/Windows Resource Kits/Tools:/c/Tcl/bin:[...]

v.s. (old)

Philip@PHILIPOAKLEY ~
$ echo $PATH
 /c/Documents and Settings/Philip/bin:.:/usr/local/bin:/mingw/bin:/bin:/d/Program Files/Windows Resource Kits/Tools/:/c/Tcl/bin:[...]

I haven't done any looking yet....

@nalla
Copy link

nalla commented Mar 31, 2015

The $PATH is being constructed by the /etc/profile file. If you compare those two files, you'll find out that export PATH="$HOME/bin:$PATH" was present in the msysgit one.

As a workaround if you want to edit your $PATH, maybe put that line in your .bashrc file.

/etc/profile is maintained by MSYS2. We could ship a path.sh within the /etc/profile.d directory that would do what you want.

See git-for-windows/build-extra#17.

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

Successfully merging a pull request may close this issue.

2 participants