emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/exec-path-from-shell c2a727fe34 062/114: fix defcustom loa


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell c2a727fe34 062/114: fix defcustom loading when env SHELL is empty
Date: Tue, 5 Sep 2023 04:00:01 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit c2a727fe3406d86c72af64a7c3b3d41ed468bc8b
Author: Johannes Goslar <jogo@kronberger-spiele.de>
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]