Bash breaks between VS 2017 -> 2019 images

philip.deegan's Avatar


09 Oct, 2019 05:40 PM

bash -c "ls -l /c/"

this command works in the Visual Studio 2017 image, but does not in the 2019 image

my guess is that "C:\Windows\System32\bash.exe" is found before "C:\Program Files\Git\usr\bin\bash.exe"

  1. Support Staff 1 Posted by Feodor Fitsner on 09 Oct, 2019 06:07 PM

    Feodor Fitsner's Avatar

    Hm, good observation. That's highly possible as there is WSL installed on VS 2019 image and I guess bash command now goes into WSL instead of MSYS as on VS 2017. At the same time removing it from C:\Windows\System32\ doesn't sound good... On VS 2017 image it's MSYS running bash by default: C:\msys64\usr\bin\bash.exe.

  2. 2 Posted by philip.deegan on 09 Oct, 2019 06:39 PM

    philip.deegan's Avatar

    Given the option I would use bash from msys over bash from git.

    There's more utilities with msys, but I have set the PATH to use bash from git and everything seems as it was

  3. Support Staff 3 Posted by Feodor Fitsner on 09 Oct, 2019 07:28 PM

    Feodor Fitsner's Avatar

    Would it be useful if we add built-in support for running bash commands in AppVeyor, with sh: prefix, for instance:

    - sh: echo Call from bash!
  4. 4 Posted by philip.deegan on 09 Oct, 2019 07:39 PM

    philip.deegan's Avatar

    I think so!

  5. Support Staff 5 Posted by Feodor Fitsner on 13 Oct, 2019 10:44 PM

    Feodor Fitsner's Avatar
  6. Feodor Fitsner closed this discussion on 03 Apr, 2020 06:45 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac