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