Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conans/client/subsystems.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def _windows_bash_wrapper(conanfile, command, env, envfiles_folder):
if not shell_path:
raise ConanException("The config 'tools.microsoft.bash:path' is "
"needed to run commands in a Windows subsystem")
shell_path = shell_path.replace("\\", "/") # Should work in all terminals
env = env or []
if subsystem == MSYS2:
# Configure MSYS2 to inherith the PATH
Expand Down
2 changes: 1 addition & 1 deletion test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"platform": "Windows",
"default": "system",
"exe": "make",
"system": {"path": {'Windows': "C:/msys64/usr/bin"}},
"system": {"path": {'Windows': r"C:\msys64\usr\bin"}},
},
'msys2_clang64': {
"disabled": True,
Expand Down
2 changes: 1 addition & 1 deletion test/functional/toolchains/gnu/autotools/test_win_bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class Recipe(ConanFile):

def package_info(self):
self.conf_info.define("tools.microsoft.bash:subsystem", "msys2")
self.conf_info.define("tools.microsoft.bash:path", "{}")
self.conf_info.define("tools.microsoft.bash:path", r"{}")
""".format(bash_path))
client.save({"conanfile.py": conanfile})
client.run("create .")
Expand Down