Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   true.1p    ( 1 )

вернуть истинное значение (return true value)

Пролог (Prolog)

This manual page is part of the POSIX Programmer's Manual.  The
       Linux implementation of this interface may differ (consult the
       corresponding Linux manual page for details of Linux behavior),
       or the interface may not be implemented on Linux.

Имя (Name)

true — return true value

Описание (Description)

The true utility shall return with exit code zero.

Параметры (Options)

None.

Операнды (Operands)

None.

Стандартный ввод (Stdin)

Not used.

Входные файлы (Input files)

None.

Переменные окружения (Environment variables)

None.

Асинхронные события (Asynchronous events)

Default.

Стандартный вывод (Stdout)

Not used.

Стандартный вывод сообщений (Stderr)

Not used.

Выходные файлы (Output files)

None.

Расширенное описание (Extended description)

None.

Статус выхода (Exit)

Zero.

Последствия ошибок (Consequences of errors)

None.

The following sections are informative.


Использование в приложениях (Application usage)

This utility is typically used in shell scripts, as shown in the
       EXAMPLES section. The special built-in utility : is sometimes
       more efficient than true.

Примеры (Examples)

This command is executed forever:

while true do command done


Обоснование (Rationale)

The true utility has been retained in this volume of
       POSIX.1‐2017, even though the shell special built-in : provides
       similar functionality, because true is widely used in historical
       scripts and is less cryptic to novice script readers.

Будущие направления (Future directions)

None.

Смотри также (See also)

Section 2.9, Shell Commands, false(1p)