Closed jasonm23 closed 7 years ago
exec-path-from-shell--standard-shell-p
the predicate in question.
I think it should throw an error like this:
(defun exec-path-from-shell--standard-shell-p (shell)
"Return non-nil iff SHELL supports the standard ${VAR-default} syntax."
(if (not (eq shell nil))
(not (string-match "\\(fish\\|t?csh\\)$" shell))
(error "SHELL is not defined")))
Or maybe just a warning:
(defun exec-path-from-shell--standard-shell-p (shell)
"Return non-nil iff SHELL supports the standard ${VAR-default} syntax."
(if (not (eq shell nil))
(not (string-match "\\(fish\\|t?csh\\)$" shell))
(message "Warning: SHELL is not defined")))
(of course the message option will need to return a nil too)
@purcell if you would prefer one way or the other, let me know. I'm happy to code it if you don't have time.
Thanks. Addressed in 0f53502.
Thanks
Seems that some environments don't pass
SHELL
.This causes the predicate which checks for standard shell to fail with a stringp / nil type error.