Bash breaks between VS 2017 -> 2019 images

philip.deegan's Avatar

philip.deegan

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:

    build_script:
    - 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

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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

Recent Discussions

13 Dec, 2019 05:26 PM
13 Dec, 2019 11:28 AM
12 Dec, 2019 09:36 PM
12 Dec, 2019 09:25 PM
12 Dec, 2019 06:01 PM

 

11 Dec, 2019 11:29 PM
11 Dec, 2019 08:47 PM
11 Dec, 2019 01:39 PM
10 Dec, 2019 12:29 AM
09 Dec, 2019 05:35 AM
07 Dec, 2019 04:20 PM