true(1) General Commands Manual true(1)
NAME
true, false - return exit status zero or one respectively
SYNOPSIS
DESCRIPTION
The command does nothing, and returns exit code zero. The command does nothing, and returns exit code one. They are typically used to
construct command procedures.
RETURN VALUE
Exit values are:
always from
true.
always from
false.
EXAMPLES
This command loop repeats without end:
WARNINGS
is typically used in shell scripts. Some shells provide a built-in version of (and that is more efficient than the standalone versions.
SEE ALSO
csh(1), ksh(1), sh(1), sh-posix(1).
STANDARDS CONFORMANCE
true(1)