Go to main content

手册页部分 1:用户命令

退出打印视图

更新时间: 2022年7月27日 星期三
 
 

true(1)

名称

true, false - 提供实际值

用法概要

true 
false 

描述

true 实用程序不执行任何操作,成功。false 实用程序不执行任何操作,不成功。它们在 shell 脚本 sh 中的一般用法如下:

while true
do
            command
done

永远执行 command。

退出状态

true 退出状态为 0。

false 始终以非零值退出。

属性

有关下列属性的说明,请参见 attributes(7):

属性类型
属性值
可用性
system/core-os
接口稳定性
Committed(已确定)
标准
请参见 standards(7)。

另请参见

sh(1)、attributes(7)、standards(7)