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 54c1d4a0c6 047/114: Don't break if $S


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 54c1d4a0c6 047/114: Don't break if $SHELL is unset at load-time
Date: Tue, 5 Sep 2023 03:59:59 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit 54c1d4a0c6e3cbf66e1399298d4cf1bc575020be
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>

    Don't break if $SHELL is unset at load-time
    
    Fixes #20
---
 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 b301b0de65..56d381668b 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -91,7 +91,7 @@
 
 (defun exec-path-from-shell--tcsh-p (shell)
   "Return non-nil if SHELL appears to be tcsh."
-  (string-match "tcsh$" shell))
+  (and shell (string-match "tcsh$" shell)))
 
 (defun exec-path-from-shell--login-arg (shell)
   "Return the name of the --login arg for SHELL."



reply via email to

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