Skip to content
Snippets Groups Projects
Commit df8ee438 authored by Tom Scogland's avatar Tom Scogland Committed by Todd Gamblin
Browse files

stop word splitting from leaking out of setup-env (#14472)

The pathadd function was using setopt to configure zsh for word
splitting, which leaks out of the function and breaks default
functionality in a number of external zsh plugins and packages.  This
switches to emulate -L, just as the spack function uses, to keep the
setting local to the function.
parent 7ddbc9bc
Branches master
No related tags found
No related merge requests found
......@@ -336,7 +336,7 @@ fi;
_sp_multi_pathadd() {
local IFS=':'
if [ "$_sp_shell" = zsh ]; then
setopt sh_word_split
emulate -L sh
fi
for pth in $2; do
for systype in ${_sp_compatible_sys_types}; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment