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/sszxjnwzazz01486dqxi6cpi1wxyg88v-emacs-28-2/libexec/emacs/28.2/x86_64-pc-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').