Shell Debugging Prompt String

$PS4 defines the prompt string of your shell, which is printed during shell debugging. It’s printed when line tracing is enabled, e.g. by calling set -x.

Examples

1
2
3
4
# Print a command's line number before executing it
PS4='[${LINENO}]+ '
set -x
echo Hello
BashSupport Pro 是一个 支持 $PS4 的 Bash 集成开发工具 – 马上试用!
© 2020–2022 Joachim Ansorg
声明
隐私政策
许可条款