Skip to content
EntityQ1743307· pop 7

Also known as /bin/true, /usr/bin/true, true command

Computerprogramm in Unixoiden Systemen

Described at

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. IEEE Std 1003.1-2001/Cor 1-2002, item XCU/TC1/D6/39 is applied, replacing the terms None'' and Default'' from the STDERR and EXIT STATUS sections, respectively, with terms as defined in Utility Description Defaults .

Excerpt from a page describing this subject · 3,294 chars · not written by Vinony

Wikidata facts

Show 1 more fact
Sources (2)

via Wikidata · CC0

Article · Deutsch

true (/bin/true) ist ein Programm in Unix-Systemen. Sein Verhalten ist für UNIX-Systeme durch den POSIX-Standard genormt. Das Programm liefert bei der Ausführung den Rückgabewert 0, welcher konventionsgemäß von Shells bzw. deren Verzweigungskonstrukten als logisches wahr bzw. richtig interpretiert wird. stdout bleibt leer. Sein sonstiges Verhalten entspricht dem anderer Kommandozeilenprogramme. In manchen Shells ist true als built-in ausgeführt, um den sonst notwendigen zusätzlichen fork zu ersparen und damit die Ausführungsgeschwindigkeit zu verbessern, allerdings stellt der POSIX-Standard (Base Specifications Issue 7, 2018 Edition) fest, dass true aus Kompatibilitätsgründen weiterhin im Standard behalten wird. Unter Application Usage wird stattdessen das Null-Kommando (:) empfohlen.

Abstract from DBpedia / Wikipedia · CC BY-SA

Available in 7 languages

via Wikidata sitelinks · CC0