Don't read envvar literally at startup #1549

This commit is contained in:
Henrik Lissner 2019-07-10 15:01:01 +02:00
parent 14b1e36812
commit b4d004a91a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -432,7 +432,7 @@ in interactive sessions, nil otherwise (but logs a warning)."
(if (not (file-readable-p file)) (if (not (file-readable-p file))
(doom-log "Couldn't read %S envvar file" file) (doom-log "Couldn't read %S envvar file" file)
(with-temp-buffer (with-temp-buffer
(insert-file-contents-literally file) (insert-file-contents file)
(search-forward "\n\n" nil t) (search-forward "\n\n" nil t)
(while (re-search-forward "\n\\([^= \n]+\\)=" nil t) (while (re-search-forward "\n\\([^= \n]+\\)=" nil t)
(save-excursion (save-excursion