From af1e9c424fb11a5ff0b95153dfd8d072103faa12 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Morin Date: Sat, 11 Nov 2023 14:13:33 -0500 Subject: [PATCH] Set default shell on Windows to "powershell" Signed-off-by: Jean-Christophe Morin --- src/rez/rezconfig.py | 3 +++ src/rez/system.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rez/rezconfig.py b/src/rez/rezconfig.py index f66cb467f7..853d7c60da 100644 --- a/src/rez/rezconfig.py +++ b/src/rez/rezconfig.py @@ -535,6 +535,9 @@ # The default shell type to use when creating resolved environments (eg when using # :ref:`rez-env`, or calling :meth:`.ResolvedContext.execute_shell`). If empty or None, the # current shell is used (for eg, "bash"). +# +# .. versionchanged:: 3.0.0 +# The default value on Windows was changed to "powershell". default_shell = "" # The command to use to launch a new Rez environment in a separate terminal (this diff --git a/src/rez/system.py b/src/rez/system.py index 4a9fed1e31..64d2be7f71 100644 --- a/src/rez/system.py +++ b/src/rez/system.py @@ -73,7 +73,7 @@ def shell(self): raise RezSystemError("no shells available") if self.platform == "windows": - return "cmd" + return "powershell" else: import subprocess as sp shell = None