I am using make
from inside MSYS2 project, in general without problems. However, if I use zsh, I am unable to switch subsystems. For example:
source shell mingw64
gives:
/usr/bin/shell:58: bad substitution
Clearly, there is bash specific code in the shell
script and the script is sourced because it sets environment variable in the calling shell.
One could fix this amending shell
code, but that could be overwritten or become incompatible, after the next pacman -Syu
.
Is there a general solution to source Bash scripts in zsh (or a solution specific for switching MSYS subsystem)?