TRUE(1)
NAME
true, false − return zero or one exit status respectively
SYNOPSIS
true
false
DESCRIPTION
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.
RETURN VALUE
Exit values are:
0 always from true.
1 always from false.
EXAMPLES
This command loop will be executed forever:
while true
do
command
done
SEE ALSO
STANDARDS CONFORMANCE
true: SVID2, XPG2, XPG3
false: SVID2, XPG2, XPG3
Hewlett-Packard Company — HP-UX Release 7.0: Sept 1989