variable
PS0
Expanded in an interactive shell after it reads a command and before executing it. Unlike PS1, it is not the prompt requesting new input. The fixture uses a static marker and verifies that it precedes the output; avoid secrets and untrusted command substitutions in prompts. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Use interactive Bash with default key bindings; expected visible result: before:body.
Formal Syntax & Structure
bash syntaxbash
PS0Return Value
shell variable
Expansion yields the current value in its applicable context, not a separate command exit status.
Working Example
Example Snippetbash
# In fresh interactive Bash:PS0='before:'printf 'body\n'