branch: elpa/exec-path-from-shell
commit 54c1d4a0c6e3cbf66e1399298d4cf1bc575020be
Author: Steve Purcell <[email protected]>
Commit: Steve Purcell <[email protected]>

    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