TRUE(1) General Commands Manual TRUE(1)
NAME
true — return true
value
SYNOPSIS
true |
DESCRIPTION
The true utility shall return with exit
code zero.
OPTIONS
None.
OPERANDS
None.
STANDARD INPUT
None.
INPUT FILES
None.
ENVIRONMENT VARIABLES
None.
ASYNCHRONOUS EVENTS
Default.
STANDARD OUTPUT
None.
STANDARD ERROR
None.
OUTPUT FILES
None.
EXTENDED DESCRIPTION
None.
EXIT STATUS
The true utility always exits with a value
of zero.
CONSEQUENCES OF ERRORS
Default.
RATIONALE
EXAMPLES
The true utility is typically used in
shell scripts. The special built-in utility : (see
colon(1) ) is sometimes more efficient than
true.
HISTORY OF DECISIONS MADE
The true utility has been retained in
POSIX.
2, even though the shell special built-in : provides similar functionality,
because true is widely used in existing scripts and
is less cryptic to novice human script readers.
September 1991 posix.fail