Query: true
OS: osf1
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
true(1) General Commands Manual true(1)NAMEtrue, false - Returns a standard exit valueSYNOPSIStrue falseSTANDARDSInterfaces 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 industry standards and associated tags.DESCRIPTIONThe 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 commands.NOTESThe 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.EXAMPLESTo 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 ALSOCommands: csh(1), ksh(1), Bourne Shell sh(1b), POSIX shell sh(1p) Standards: standards(5) true(1)
| Related Man Pages | 
|---|
| line(1) - osf1 | 
| link(1) - osf1 | 
| printenv(1) - osf1 | 
| test(1) - osf1 | 
| unlink(1) - osf1 | 
| Similar Topics in the Unix Linux Community | 
|---|
| Add lines into file | 
| What does : do in this instance | 
| Shell Scripting | 
| Run script every minute and terminate after specified number of executions | 
| Date Compare tool |