From df8ee438e5c1b4abea28e0db4553b9854b3767c6 Mon Sep 17 00:00:00 2001 From: Tom Scogland Date: Tue, 14 Jan 2020 13:32:57 -1000 Subject: 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. --- share/spack/setup-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share') diff --git a/share/spack/setup-env.sh b/share/spack/setup-env.sh index a59f5120b3..23a29ce6a2 100755 --- a/share/spack/setup-env.sh +++ b/share/spack/setup-env.sh @@ -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 -- cgit v1.2.3-70-g09d2