(Bug Report) Does not let msys2 use its own env #3925

Open
opened 2026-01-30 23:33:28 +00:00 by claunia · 0 comments
Owner

Originally created by @Merith-TK on GitHub (Sep 17, 2019).

Environment

Windows build number: Unable to acquire at this moment, will update when i am back on my PC
Windows Terminal version (if applicable): Microsoft Store release (as of 1730, PST-8, 9/16/2019)

msys2.org 

Steps to reproduce

Install msys2, and then, in settings.json specify the command to open msys2's version of bash.exe instead of cmd.exe
C:/msys64/usr/bin/bash.exe

Expected behavior

A proper working MSYS2 shell like in vs-code along with msys2.exe

Actual behavior

Loads basic BASH.exe and anything sourced in ~/.bashrc but otherwise, any environment variable not set in ~/.bashrc is overwritten by windows environment variables. Such as PATH
MSYS2 $PATH is overridden with windows %PATH%, which while it works, it defeats the purpose of msys2 as MANY core programs to msys2 (such as pacman, ls, nano, and anything else) are not in path

Originally created by @Merith-TK on GitHub (Sep 17, 2019). # Environment ```none Windows build number: Unable to acquire at this moment, will update when i am back on my PC Windows Terminal version (if applicable): Microsoft Store release (as of 1730, PST-8, 9/16/2019) msys2.org ``` # Steps to reproduce Install msys2, and then, in `settings.json` specify the command to open `msys2`'s version of `bash.exe` instead of `cmd.exe` `C:/msys64/usr/bin/bash.exe` # Expected behavior A proper working MSYS2 shell like in vs-code along with msys2.exe # Actual behavior Loads basic BASH.exe and anything sourced in `~/.bashrc` but otherwise, any environment variable not set in `~/.bashrc` is overwritten by windows environment variables. Such as PATH MSYS2 `$PATH` is overridden with windows `%PATH%`, which while it works, it defeats the purpose of msys2 as MANY core programs to msys2 (such as `pacman`, `ls`, `nano`, and anything else) are not in path
claunia added the Resolution-By-DesignNeeds-Tag-Fix labels 2026-01-30 23:33:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3925