diff --git a/libexec/pyenv-rehash b/libexec/pyenv-rehash index c266b1bf..56756fc3 100755 --- a/libexec/pyenv-rehash +++ b/libexec/pyenv-rehash @@ -46,7 +46,7 @@ set -e [ -n "\$PYENV_DEBUG" ] && set -x program="\${0##*/}" -if [ "\$program" = "python" ]; then +if [[ "\$program" = "python"* ]]; then for arg; do case "\$arg" in -c* | -- ) break ;;