diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2022-02-04 20:37:56 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-02-20 14:25:18 +0200 |
commit | 5d64a15be7e66cfa5573924efeff5dc1e3a39b3e (patch) | |
tree | 216673a8f4558b7ec1c60af087e63ce38984603d /.flake8 | |
parent | e8e7fd98e280baa346a13a75c337832a4fd7f66a (diff) | |
download | meson-5d64a15be7e66cfa5573924efeff5dc1e3a39b3e.zip meson-5d64a15be7e66cfa5573924efeff5dc1e3a39b3e.tar.gz meson-5d64a15be7e66cfa5573924efeff5dc1e3a39b3e.tar.bz2 |
devenv: support bash under MSYS2 by default
Currently it tries to run "cmd" by default in a MSYS2 bash.
Passing "bash" doesn't work since that defaults to WSL and
one has to pass an absolute path to bash instead, and even then
one misses out on the PS1 override.
In case $SHELL is set and the contained path exists prefer it even if
we are on Windows.
To make the PS1 override work we can't use Unix paths in Python since
we might be on Windows, so move the .bashrc check into the temporary
bash script itself.
This makes "meson devenv" work the same under MSYS2 as on Linux.
Diffstat (limited to '.flake8')
0 files changed, 0 insertions, 0 deletions