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

view this post on Zulip Notification Bot (Nov 01 2022 at 18:30):

Leandro Martínez has marked this topic as resolved.


Last updated: Nov 22 2024 at 04:41 UTC