diff --git a/news/foreign_shells_names.rst b/news/foreign_shells_names.rst new file mode 100644 index 000000000..ebba36ba9 --- /dev/null +++ b/news/foreign_shells_names.rst @@ -0,0 +1,14 @@ +**Added:** None + +**Changed:** None + +**Deprecated:** None + +**Removed:** None + +**Fixed:** + +* Fixed a bug if foreign_shell name was not written in lower case in + the static configuration file ``config.json`` + +**Security:** None diff --git a/xonsh/foreign_shells.py b/xonsh/foreign_shells.py index d00d3f7d0..ce417a90f 100644 --- a/xonsh/foreign_shells.py +++ b/xonsh/foreign_shells.py @@ -490,7 +490,7 @@ def ensure_shell(shell): if not (shell_keys <= VALID_SHELL_PARAMS): msg = 'unknown shell keys: {0}' raise KeyError(msg.format(shell_keys - VALID_SHELL_PARAMS)) - shell['shell'] = ensure_string(shell['shell']) + shell['shell'] = ensure_string(shell['shell']).lower() if 'interactive' in shell_keys: shell['interactive'] = to_bool(shell['interactive']) if 'login' in shell_keys: