diff options
| author | Paul Eggert | 2025-07-24 14:49:52 -0700 |
|---|---|---|
| committer | Paul Eggert | 2025-07-24 22:13:47 -0700 |
| commit | eb9ec79c13f17d610fcb6de49628b8a7686fbab7 (patch) | |
| tree | 65229f340d83d020275e5f28b640d7b4d2722827 /etc | |
| parent | 6a08a9a54d4ff5aafe795c7a079709993c08dff3 (diff) | |
| download | emacs-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/NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -2755,6 +2755,12 @@ option, but can optionally return the equivalent of 'exec-suffixes' from | |||
| 2755 | a remote host. It must be used in conjunction with the function | 2755 | a 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. | ||
| 2760 | That is, if the PATH environment variable is unset or empty, 'exec-path' | ||
| 2761 | now acts as if PATH is the system default, which is "/bin:/usr/bin" | ||
| 2762 | on 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 | ||