Description
The README claims:
Further, if you use a non-POSIX-standard shell (...), your shell will be asked to execute
sh
as a subshell in order to print out the variables in a format which can be reliably parsed. sh must be a POSIX-compliant shell in this case.
My init.el
says:
(when (eq system-type 'darwin)
(elpaca exec-path-from-shell
(setq exec-path-from-shell-check-startup-files nil)
(exec-path-from-shell-initialize)))
I can confirm that tcsh
works just well. Anyway, my login (= default) shell on this computer is the rc
shell, arguably a UNIX-y shell (being the default shell of the last Research Unix version 10). Emacs does not like that:
Warning (emacs): Config Error exec-path-from-shell: (error "Expected printf output from shell, but got: "rc: syntax error
"")
Suggestion: Add the rc
executable to the list of non-standard shells:
; echo $SHELL
/Users/tux0r/bin/rc
edit: Actually, there are two ways to fix it:
- Add
rc
to the list of non-standard shells or - support
rc
's$path
syntax - that would be elegant, as it is a list:
; echo $path
/bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin /opt/schily/bin /opt/homebrew/bin (... truncated)
Note that rc
uses $path
, not $PATH
, though. I'd gladly send a patch if you decide on one... :-)