shtests: add ${.sh.pid} to PS4/xtrace (re: 9de65210)

This commit is contained in:
Martijn Dekker 2020-09-02 15:51:02 +01:00
parent 5395641036
commit bc4dbe0627
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ done
shift $OPTIND-1
if (( debug )) || [[ $trace ]]
then export PS4='+ [${SECONDS:+${SECONDS%????}s|}${.sh.subshell:+S${.sh.subshell},}${.sh.file:+${.sh.file#${.sh.file%/*/*}/},}${.sh.fun:+${.sh.fun},}${LINENO:+L$LINENO,}e$?] '
then export PS4='+ [${SECONDS:+${SECONDS%????}s|}${.sh.pid:+P${.sh.pid},}${.sh.subshell:+S${.sh.subshell},}${.sh.file:+${.sh.file#${.sh.file%/*/*}/},}${.sh.fun:+${.sh.fun},}${LINENO:+L$LINENO,}e$?] '
if (( debug ))
then set -x
fi