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/y8rifw71hjgsl2qjn1l0vrwq2c3593aw-emacs-30-2/libexec/emacs/30.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).

View in manual

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').