variable
PS4
Prefix expanded when xtrace emits a command. Quote dynamic expressions until trace time.
Formal Syntax & Structure
bash syntaxbash
PS4=prefixReturn Value
string
Prefix expanded when xtrace emits a command. Quote dynamic expressions until trace time.
Working Example
Example Snippetbash
PS4='TRACE: 'set -xname=demoset +xprintf '%s\n' "$name"