Skip to main content

Module shell

Module shell 

Source
Expand description

Locate command-line executables. Each lookup target is treated as a PATH name when it has no separators, or as a file path otherwise.

Structs§

Resolver

Enums§

ShellError

Functions§

enriched_environ
enriched_environ returns the current environment with PATH merged from the process and login-shell PATH, order preserved and duplicates dropped. Use it when spawning child processes that must find user-installed tools.
list_npm_global_bin_dirs
list_system_bin_dirs
list_user_local_bin_dirs
list_windows_application_dirs
login_path
login_path returns the PATH as seen by the user’s interactive login shell. GUI applications launched outside a terminal on macOS and Linux do not inherit the shell’s PATH additions; this recovers them. On Windows, and when the shell cannot be queried, it falls back to the current process PATH.