shtests: add ${.sh.pid} to PS4/xtrace (re: 9de65210)
This commit is contained in:
parent
5395641036
commit
bc4dbe0627
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue