From e985ffab82f019136c4974e6f598718ff8f4bcbe Mon Sep 17 00:00:00 2001 From: Jake Lodwick Date: Mon, 9 Mar 2026 22:15:46 -0700 Subject: [PATCH] rehash: simplify source.bash pipeline (#3419) Same cleanup applied to conda.bash in #3151. --- pyenv.d/rehash/source.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyenv.d/rehash/source.bash b/pyenv.d/rehash/source.bash index 6bcbcbd7..8e38fb4e 100644 --- a/pyenv.d/rehash/source.bash +++ b/pyenv.d/rehash/source.bash @@ -2,7 +2,7 @@ PROTOTYPE_SOURCE_SHIM_PATH="${SHIM_PATH}/.pyenv-source-shim" shims=() shopt -s nullglob -for shim in $(cat "${BASH_SOURCE%/*}/source.d/"*".list" | sort | uniq | sed -e 's/#.*$//' | sed -e '/^[[:space:]]*$/d'); do +for shim in $(sort -u "${BASH_SOURCE%/*}/source.d/"*".list" | sed -e 's/#.*$//' -e '/^[[:space:]]*$/d'); do if [ -n "${shim##*/}" ]; then shims[${#shims[*]}]="${shim})return 0;;" fi