A few weeks ago, I asked a similar question on the Discussion, and never 
got a clear answer. I didn't like the huge number of Windows paths in 
the msys2 PATH. So I did an experiment. I added a line at the top of 
/etc/profile to clear PATH before it gets built, so none of the Windows 
paths included:

PATH=

I've been using this since with no apparent problems (at least no 
problems due to missing Windows paths).

If one accepts the wiki at face value, I assume there must be some bad 
effect of omitting all Windows paths, though never spelled out, so it 
seems a better approach might be to say at top of /etc/profile:

PATH=C:\\Windows\\system32

To help me and others better understand this issue, can anyone explain 
what kinds of things fail if windows paths are not in msys2 PATH?

Thanks,
Daniel

On 11/12/2015 1:33 AM, David Macek wrote:
> On 12. 11. 2015 10:21, Baruch Burstein wrote:
>> Hi,
>>
>> The wiki says:
>>
>>      When using the shells, try to remove as many entries from PATH as you 
>> can, ideally only leaving something like |C:\Windows\system32|
>>
>>
>> How do I do this? If I set PATH in the .bash_profile file, it will overwrite 
>> also the things added by msys2, like /usr/bin etc. Where can I set the PATH 
>> variable that is passed from Windows? If it makes a difference, I can use 
>> either the standard batch files or the new launchers.
>
> I used to employ a separate batch file that was similar to the official ones, 
> but also changed the PATH. You can do that, or you can just edit the official 
> batch files (but they'll be overwritten on the next update of the filesystem 
> package).
>
> For the new launchers, you can add a PATH=... line into the .ini files. In 
> the next release, there will be a new PATH line template (commented out by 
> default). The .ini files shouldn't be overwritten upon update.
>
>> ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
>
> ˙pooƃ ʇsnɾ ǝɹ,noʎ ɹO
>
>
>
> ------------------------------------------------------------------------------
>
>
>
> _______________________________________________
> Msys2-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/msys2-users
>

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to