The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

true - return true value

 SYNOPSIS



true

 DESCRIPTION

The true utility will return with exit code zero.

 OPTIONS

None.

 OPERANDS

None.

 STDIN

Not used.

 INPUT FILES

None.

 ENVIRONMENT VARIABLES

None.

 ASYNCHRONOUS EVENTS

Default.

 STDOUT

Not used.

 STDERR

None.

 OUTPUT FILES

None.

 EXTENDED DESCRIPTION

None.

 EXIT STATUS

Default.

 CONSEQUENCES OF ERRORS

None.

 APPLICATION USAGE

This utility is typically used in shell scripts, as shown in the the EXAMPLES section. The special built-in utility ":" is sometimes more efficient than true.

 EXAMPLES

This command will be executed forever:

while true
do
    command
done

 FUTURE DIRECTIONS

None.

 SEE ALSO

false, Shell Commands .

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]