aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2025-07-24 14:49:52 -0700
committerPaul Eggert2025-07-24 22:13:47 -0700
commiteb9ec79c13f17d610fcb6de49628b8a7686fbab7 (patch)
tree65229f340d83d020275e5f28b640d7b4d2722827 /etc
parent6a08a9a54d4ff5aafe795c7a079709993c08dff3 (diff)
downloademacs-eb9ec79c13f17d610fcb6de49628b8a7686fbab7.tar.gz
emacs-eb9ec79c13f17d610fcb6de49628b8a7686fbab7.zip
PATH defaults now act more like GNU and POSIX
When PATH is unset or empty, use the system default, to be consistent with GNU/Linux and with POSIX. If there is no system default do not default to "." as that can be dangerous. * src/callproc.c (init_callproc_1, init_callproc): Default PATH to the null pointer, not the empty string. * src/emacs.c (default_PATH): New function. (find_emacs_executable, decode_env_path): Be consistent with POSIX and with glibc about what to do when PATH is unset or empty.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 865e5e6b6d5..8f396403ba2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2755,6 +2755,12 @@ option, but can optionally return the equivalent of 'exec-suffixes' from
2755a remote host. It must be used in conjunction with the function 2755a remote host. It must be used in conjunction with the function
2756'exec-path'. 2756'exec-path'.
2757 2757
2758+++
2759** The 'exec-path' variable now uses same default PATH as other programs.
2760That is, if the PATH environment variable is unset or empty, 'exec-path'
2761now acts as if PATH is the system default, which is "/bin:/usr/bin"
2762on GNU/Linux systems.
2763
2758 2764
2759* Changes in Emacs 31.1 on Non-Free Operating Systems 2765* Changes in Emacs 31.1 on Non-Free Operating Systems
2760 2766