From 1e017f39170f95c400f9322c4798022c25778233 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Tue, 27 Feb 2024 17:52:26 +0300 Subject: [PATCH] Set useful PS4 in python-build --- plugins/python-build/bin/python-build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 044defde..a30f6697 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -19,7 +19,10 @@ PYTHON_BUILD_VERSION="20180424" OLDIFS="$IFS" set -E -[ -n "$PYENV_DEBUG" ] && set -x +[ -n "$PYENV_DEBUG" ] && { + export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }' + set -x +} exec 3<&2 # preserve original stderr at fd 3