Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > T

true(1)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

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 command 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.

STANDARDS CONFORMANCE

true: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

false: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.