Skip to main content

Module shell

Module shell 

Source
Expand description

Shell integration helpers.

This module provides helper functions for common shell operations.

Functions§

command_exists
Checks if an executable exists in PATH.
default_shell
Gets the current platform’s shell executable name.
eval
Executes a shell command string.
get_env
Gets environment variable value safely.
is_unix
Checks if running on a Unix-like system.
is_windows
Checks if running on Windows.
shell_exec_flag
Gets the shell flag for executing a command string.
which
Finds the full path to an executable.