Stream: helpdesk (published)

Topic: check if command exists


view this post on Zulip Leandro Martínez (Nov 01 2022 at 14:31):

Is there a simple function to check if a external (system-wide) command exists? Like checking if ls exists, or similar?

view this post on Zulip Leandro Martínez (Nov 01 2022 at 14:32):

(something cleaner than try run(...) catch ... end, at least.

view this post on Zulip Jakob Nybo Nissen (Nov 01 2022 at 14:43):

Sys.which, which returns nothing if the program is not found


Last updated: Oct 02 2023 at 04:34 UTC