Variable: exec-path
exec-path is a customizable variable defined in callproc.c.
Value
("/nix/store/emacs/bin" "/usr/local/sbin" "/usr/local/bin" "/usr/sbin"
"/usr/bin" "/sbin" "/bin"
"/nix/store/a658fvazk6z9r5piiflfxzv0b26vzrp6-emacs-release-snapshot/libexec/emacs/31.1/aarch64-unknown-linux-gnu")
Documentation
List of directories to search programs to run in subprocesses.
Each element is a string (directory name) or nil (try default directory).
By default the last element of this list is exec-directory. The
last element is not always used, for example in shell completion
(shell-dynamic-complete-command).
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/callproc.c
DEFVAR_LISP ("exec-path", Vexec_path,
doc: /* List of directories to search programs to run in subprocesses.
Each element is a string (directory name) or nil (try default directory).
By default the last element of this list is `exec-directory'. The
last element is not always used, for example in shell completion
\(`shell-dynamic-complete-command').