Skip to content

The rc shell is not supported #114

Open
@dertuxmalwieder

Description

@dertuxmalwieder

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:

  1. Add rc to the list of non-standard shells or
  2. 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... :-)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions