diff --git a/spyder/utils/environ.py b/spyder/utils/environ.py index 899e241ee3c..d8afa78b9aa 100644 --- a/spyder/utils/environ.py +++ b/spyder/utils/environ.py @@ -51,7 +51,7 @@ def _get_user_env_script(): if Path(shell).name in ('bash', 'zsh'): script_text = dedent( f"""\ - !{shell} -i + #!{shell} -i unset HISTFILE {shell} -l -c "'{sys.executable}' -c 'import os; print(dict(os.environ))'" """