Discussion:
[Mingw-users] Missing Windows entries in MSYS' $PATH?
Andrew Pennebaker
2017-07-07 21:05:56 UTC
Permalink
MSYS appears to lack many entries in its $PATH, compared to my Windows user
%PATH%.

MSYS:

$ echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/opt/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
echo %PATH%
C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program
Files\ConEmu\ConEmu;C:\Program Files (x86)\Razer Chroma SDK\bin;C:\Program
Files\Razer Chroma SDK\bin;C:\Program
Files\Docker\Docker\Resources\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\ProgramData\chocolatey\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Windows Kits\8.1\Windows Performance
Toolkit\;C:\Go\bin;C:\Users\a_pen\go\bin;C:\Ruby24-x64\bin;C:\Users\a_pen\.cargo\bin;C:\Users\a_pen\AppData\Local\Microsoft\WindowsApps;C:\Users\a_pen\AppData\Local\atom\bin;C:\Program
Files
(x86)\GnuWin\file-5.03-bin\bin;C:\Users\a_pen\AppData\Local\Programs\Python\Python36-32;C:\Users\a_pen\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Program
Files\Git\cmd;C:\Program Files\Git\bin

MSYS bash configuration:

https://github.com/mcandre/dotfiles/blob/06abd486b51c7b4ae56bd530a0afa6f4257401be/.bash_profile
https://github.com/mcandre/dotfiles/blob/06abd486b51c7b4ae56bd530a0afa6f4257401be/.bashrc

Any ideas for correcting MSYS PATH to include the full Windows user PATH?

Other shells feature the correct full PATH, including cmd, PowerShell, Git
bash, and bash on Ubuntu on Windows.
--
Cheers,
Andrew
Eli Zaretskii
2017-07-08 06:40:51 UTC
Permalink
Date: Fri, 7 Jul 2017 16:05:56 -0500
MSYS appears to lack many entries in its $PATH, compared to my Windows user %PATH%.
Doesn't happen here.

How do you start the MSYS Bash? Also, which of the environment
variables you show are in the "System variables" and which are the
"User variables" for your user?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
MinGW-users mailing list
MinGW-***@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-***@lists.sourceforge.net?subject=unsubscribe
Loading...