[linux-l] Existenz eines Programmes herausfinden

Nico Golde nion at gmx.net
Do Apr 13 13:42:08 CEST 2006


Hi,
* Volker Grabsch <vog at notjusthosting.com> [2006-04-13 13:31]:
> On Wed, Apr 12, 2006 at 09:23:14PM +0100, Robert C. Helling wrote:
> > >Wie finde ich heraus, ob ein bestimmtes Programm verfügbar ist?
> [...]
> > >d.h. ob es einem der Verzeichnisse von PATH liegt.
> > 
> > wie waere es mit
> > 
> > which PROGRAMMNAME
> 
> Das ist nicht dasselbe. Außerdem ist der Output etwas blöd zu parsen.
> Was aber viel wichtiger ist: "which" sucht an Standardplätzen,
> insbesondere nicht im $PATH.

[...] 
Also mal davon abgesehen, dass du ja wie bereits gesagt 
hast, command das richtige ist. Warum suht which nicht im 
PATH?
       which  returns  the  pathnames of the files which would be executed in the current environment,
       had its arguments been given as commands in a strictly POSIX-conformant shell.  It does this by
       searching the PATH for executable files matching the names of the arguments.
Gruß Nico
P.S: Ich hoffeich hab das insbesondere nicht, nicht falsch gedeutet :)
-- 
Nico Golde - JAB: nion at jabber.ccc.de | GPG: 0x73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : nicht verfügbar
Dateityp    : application/pgp-signature
Dateigröße  : 189 bytes
Beschreibung: nicht verfügbar
URL         : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20060413/a9cefa71/attachment.sig>


Mehr Informationen über die Mailingliste linux-l