Missing Windows entries in MSYS' $PATH?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Missing Windows entries in MSYS' $PATH?

Andrew Pennebaker
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

Compared to Command Prompt:

> 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:


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

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing Windows entries in MSYS' $PATH?

Eli Zaretskii
> From: Andrew Pennebaker <[hidden email]>
> 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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing Windows entries in MSYS' $PATH?

MinGW - User mailing list
On 7/8/2017 2:40 AM, Eli Zaretskii wrote:

>> From: Andrew Pennebaker <[hidden email]>
>> 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?

It may be related to 64bit paths versus 32bit paths.  Just a guess I
have no idea.

--
Earnie

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing Windows entries in MSYS' $PATH?

MinGW - User mailing list
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/07/17 16:44, Earnie via MinGW-users wrote:
> On 7/8/2017 2:40 AM, Eli Zaretskii wrote:
>>> From: Andrew Pennebaker <[hidden email]>
>>> 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.

Nor here, with 32-bit WinXP or Win7, hosted by VirtualBox on 64-bit
LinuxMint Debian Edition; (although the host is 64-bit, VirtualBox
refuses to load 64-bit Windows images).

>> 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?
>
> It may be related to 64bit paths versus 32bit paths.  Just a guess I
> have no idea.

There may be something in this.  My first thought was: "isn't this by
design?"  It used to be thus for me too, but I abandoned Windows as a
day-to-day working platform about four years ago, (after I ceased to
work for any company which insisted on it).  I don't know either, but
IIRC, on Win64, MSYS has to be run under SysWOW64; maybe the full
64-bit Win64 %PATH% doesn't propagate to 32-bit SysWOW64?  (In my
case, it WAS by design: I created a custom $HOME/.profile, in which I
explicitly set PATH, deliberately omitting all the Win32 cruft, with
which I had no desire to pollute my MSYS $PATH; perhaps the OP could
do something similar, to ADD the missing directories ... assuming, of
course, that they are appropriate for use from within SysWOW64?)

- --
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJZYmlWAAoJEMCtNsY0flo/VuIP/3MEO/elj+KCC/Ng9RD5wOtC
FZGrbG4zqDUIMfoGcSlOX7rz15es7SaGaaM/U7XTNSyi5Ac961mvtUa7/FlYfcsU
7ij0EQK0ijqBzaOPpvRcSjtS8N8Q5pon+uSm9Ku1Y4ekj/IZn+NTx4QeRqpuD7Hj
YuRqJLT57FsfxKaXnAbxaLDQ67k2Up6czzup5be97IOeXCkpTqR1Jqhnh0Wq9C1h
Y7CjdBFQ8dRSL5EXCN7ZNzO/1jJVbIvV52O4CUNYWIlu3WP+2Mlk9LZFb18oA4vu
/dZHGxn7a531M/ZdZoOs92D9Ty9pT8Wv1FvGIblPTh7Ov/r0tEEw4gbtb7LzHBsJ
Rm6ahQllyGd7+SGu/k6xXb1jlytTIi2faMjoc16ENxwWNmfe5OxZBIcwMTXI6nwK
ij7RaQ/M+CUYZnsHqLcbfAbsxSRhwRAHXh+Q+ZjLZ8hlfg+9+tQIv+x2Ez1Muesg
Uh7LEA+ikXVtrcKXW0kQhpgIddyanmYDyGBzTpX1y9W32UGgK4deWpiDuqSQ+wMH
RAZpfIBAH2YDT58W1Uo19iZiWS8BVbWY6Nrqeo9/kMFyrkZESFvu6wT9mOVKh6iB
TNllJFK0VbAKf+05H6IOi4PnKHiM2V6GsE4rds0TOUPbC0AgI+UzqdTeydOfA5DI
StBAPt6WBz+6S5MLqMw0
=SToi
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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
[hidden email]

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:[hidden email]?subject=unsubscribe
Loading...