branch: elpa/exec-path-from-shell
commit c2a727fe3406d86c72af64a7c3b3d41ed468bc8b
Author: Johannes Goslar <[email protected]>
Commit: Johannes 'ksjogo' Goslar <jogo@kronberger-spiele>
fix defcustom loading when env SHELL is empty
---
exec-path-from-shell.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index 73e0b17af0..0f2c797ffd 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -97,7 +97,7 @@ Environment variables should be set in .profile or .zshenv
rather than
(concat "\"" (replace-regexp-in-string "\"" "\\\\\"" s) "\""))
(defcustom exec-path-from-shell-arguments
- (if (string-match-p "t?csh$" (getenv "SHELL"))
+ (if (string-match-p "t?csh$" (or (getenv "SHELL") ""))
(list "-d")
(list "-l" "-i"))
"Additional arguments to pass to the shell.