Skip to content
Snippets Groups Projects
Unverified Commit e0dfc3dd authored by Adam J. Stewart's avatar Adam J. Stewart Committed by GitHub
Browse files

Fix shell detection: zsh5 -> zsh (#14858)

parent 8beb42e7
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,8 @@ _spack_determine_shell() {
# If procfs is present this seems a more reliable
# way to detect the current shell
_sp_exe=$(readlink /proc/$$/exe)
basename ${_sp_exe}
# Shell may contain number, like zsh5 instead of zsh
basename ${_sp_exe} | tr -d '0123456789'
elif [ -n "${BASH:-}" ]; then
echo bash
elif [ -n "${ZSH_NAME:-}" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment