pub fn search_path(name: &str) -> Option<String>Expand description
Search for an executable by name in PATH directories
If name contains a /, it is treated as an explicit path and returned
as-is (if it exists in the VFS). Otherwise, the function first checks the
current process’s env_vars for a PATH entry (colon-separated list of
directories). If no PATH environment variable is set, it falls back to
the default search directories: /bin, /usr/bin, /usr/local/bin.