Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

ksh(1)

sh(1)

true(1)  —  Commands

OSF

NAME

true, false − Returns a standard exit value

SYNOPSIS

true

false

DESCRIPTION

The true command returns a 0 (zero) exit value.  The false command returns a nonzero 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. 

EXIT VALUES

The nonzero value returned by false may vary from system to system. 

RELATED INFORMATION

Commands:  csh(1), ksh(1), sh(1). 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026