Strip nils from exec-path

parse-colon-path will replace some paths with a nil, so we use
split-string instead with a non-nil OMIT-NULLS argument instead.
This commit is contained in:
Henrik Lissner 2020-01-15 02:04:14 -05:00
parent fee7a645c0
commit e65b5af709
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -451,7 +451,7 @@ unreadable. Returns the names of envvars that were changed."
(append (nreverse environment) process-environment)
exec-path
(if (member "PATH" envvars)
(append (parse-colon-path (getenv "PATH"))
(append (split-string (getenv "PATH") path-separator t)
(list exec-directory))
exec-path)
shell-file-name