true, false - return exit status zero or one respectively
The command true does nothing, and returns exit code zero. The
command false does nothing, and returns exit code one. They are
typically used to construct command procedures.
Exit values are:
0 always from true.
1 always from false.
This command loop repeats without end:
true is typically used in shell scripts. Some shells provide a
built-in version of true (and false) that is more efficient than the
csh(1), ksh(1), sh(1), sh-bourne(1), sh-posix(1).
true: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
false: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2
Hewlett-Packard Company - 1 - HP-UX Release 11i: November 2000