Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
true(1) OSS Shell and Utilities Reference Manual
NAME
true - Returns a standard exit value
SYNOPSIS
true
DESCRIPTION
The true command returns a 0 (zero) exit value. These commands are usually used in input to
the sh command.
EXAMPLES
To construct a loop in a shell procedure, enter:
while true
do
date
sleep 60
done
This procedure displays the date and time once a minute. To stop it, press the Interrupt key
sequence.
RELATED INFORMATION
Commands: false(1), sh(1).
9−22 Hewlett-Packard Company 527188-007