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 repeats without end:
while true
do
command
done
SEE ALSO
STANDARDS CONFORMANCE
true: SVID2, XPG2, XPG3, proposed POSIX.2 FIPS (June 1990)
false: SVID2, XPG2, XPG3, proposed POSIX.2 FIPS (June 1990)
Hewlett-Packard Company — HP-UX Release 8.05: June 1991