From 68edd564cf1566afea19dc5eb4e6af353f8bef8e Mon Sep 17 00:00:00 2001 From: rockandska Date: Tue, 9 Sep 2025 10:38:11 +0200 Subject: [PATCH] update parent shell detection in pyenv-init to be more portable --- libexec/pyenv-init | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libexec/pyenv-init b/libexec/pyenv-init index 3892ec65..6341b655 100755 --- a/libexec/pyenv-init +++ b/libexec/pyenv-init @@ -47,7 +47,11 @@ done # If shell is not provided, detect it. if [ -z "$shell" ]; then - shell="$(ps -p "$PPID" -o 'args=' 2>/dev/null || true)" + if shell=$(tr '\0' ' ' 2>/dev/null