builtin
Bash false — failure status
Performs no action and returns a nonzero status. Useful for testing conditional logic. In a context where errexit applies, it can terminate the shell.
Formal Syntax & Structure
bash syntaxbash
falseReturn Value
exit status
1.
Working Example
Example Snippetbash
falseprintf '%s\n' "$?"