unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OSF1-V5.1-alpha)
Page:
Section:
Apropos / Subsearch:
optional field



true(1)								      true(1)



NAME

  true,	false -	Returns	a standard exit	value

SYNOPSIS

  true

  false

STANDARDS

  Interfaces documented	on this	reference page conform to industry standards
  as follows:

  true:	 XCU5.0

  false:  XCU5.0

  Refer	to the standards(5) reference page for more information	about indus-
  try standards	and associated tags.

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 shell	com-
  mands.

NOTES

  The special built-in utility : (colon) is sometimes more efficient than the
  true command.

EXIT STATUS

  [Tru64 UNIX]	The nonzero value returned by the false	command	may vary from
  system to system.

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.




SEE ALSO

  Commands:  csh(1), ksh(1), Bourne Shell sh(1b), POSIX	shell sh(1p)


  Standards:  standards(5)