手册页部分 1: 用户命令

退出打印视图

更新时间: 2014 年 7 月
 
 

false(1)

名称

true, false - provide truth values

用法概要

true 
false 

描述

The true utility does nothing, successfully. The false utility does nothing, unsuccessfully. They are typically used in a shell script sh as:

while true
do
            command
done

which executes command forever.

退出状态

true has exit status 0.

false always will exit with a non-zero value.

属性

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed
Standard

另请参见

sh(1), attributes(5), standards(5)