help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: system-command-exists-p


From: Andreas Politz
Subject: Re: system-command-exists-p
Date: Mon, 07 Dec 2009 17:22:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

address@hidden (Pascal J. Bourguignon) writes:

> Andreas Röhler <address@hidden> writes:
>
>> Pascal J. Bourguignon wrote:
>>> Andreas Roehler <address@hidden> writes:
>>> 
>>>> Hi,
>>>>
>>>> needed a check if a command exists on system.
>>>> Employed the following:
>>>>
>>>> (defun system-command-exists-p (command)
>>>>   "Return t if COMMAND is available on system. "
>>>>   (let* ((cmd (format "type %s" command)))
>>>>     (eq 0 (shell-command cmd))))
>>>>
>>>> Any comments/suggestions?
>>> 

`executable-find' ?

-ap





reply via email to

[Prev in Thread] Current Thread [Next in Thread]