マニュアルページセク ション 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)