builtin
Bash true — success status
Performs no action and returns a successful status; useful for conditions and controlled examples.
Formal Syntax & Structure
bash syntaxbash
trueReturn Value
exit status
0.
Working Example
Example Snippetbash
trueprintf '%s\n' "$?"