Query or set the internal variable that specifies a colon separated list of directories to search when executing external programs. Its initial value is taken from the environment variable
OCTAVE_EXEC_PATH
(if it exists) orPATH
, but that value can be overridden by the command line argument--exec-path PATH
. At startup, an additional set of directories (including the shell PATH) is appended to the path specified in the environment or on the command line. If you use theEXEC_PATH
function to modify the path, you should take care to preserve these additional directories.