Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ false(1) — HP-UX 9.03

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

csh(1)

ksh(1)

sh(1)

sh-bourne(1)

sh-posix(1)

true(1)

NAME

true, false − return exit status zero or one 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

    done

WARNINGS

true is typically used in shell scripts.  Some shells provide a built-in version of true (and false) that is more efficient than the standalone versions. 

SEE ALSO

csh(1), ksh(1), sh(1), sh-bourne(1), sh-posix(1). 

STANDARDS CONFORMANCE

true: SVID2, XPG2, XPG3, POSIX.2

false: SVID2, XPG2, XPG3, POSIX.2

Hewlett-Packard Company  —  HP-UX Release 9.03: April 1994

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