Ihr könnt nach Thema, Kommando, Shell-Builtin oder Programmiersprache selektieren.
You can search by topic, command, shell builtin or programming language.
Das Shell-Builtin test macht auch nichts anderes: Es liefert 0 als Returncode, wenn der zu testende Ausdruck wahr ist, ansonsten 1.
The shell builtin test works exactly this way: It returns 0, if the tested expression is true, 1 otherwise.
Ein Shell-Builtin verursacht keinen neuen Prozess.
Dies ist wirklich die am ehesten portierbare Möglichkeit, da command -v ein Shell-Builtin für viele Shells ist und im POSIX-Standard definiert ist.
This is really the best way, since command -v is a shell-builtin for many shells and is defined in POSIX.
Näheres zu den Kommandos findet Ihr wo? test: Ein Shell-Builtin, mit dem man Pfadnamen, leere oder nicht leere Variablen, Werte von numerischen und alphanumerischen Variablen prüfen kann.
Where you can get more information? Bingo: in the manual pages! test: A shell builtin to check empty or non empty variables, numeric and alphanumeric values and pathnames.
Wie Ihr herauskriegen könnt, ob ein benutzter Befehl ein Shell-Builtin ist oder nicht, erfahrt Ihr im Abschnitt Finden.
To find out, whether a command you use is a shell builtin or not, read the Find chapter.