purcell / exec-path-from-shell

Make Emacs use the $PATH set up by the user's shell
Other
1.41k stars 81 forks source link

FreeBSD /bin/sh have no option '-l' #106

Open rosso- opened 2 years ago

rosso- commented 2 years ago
Non-zero exit code from shell /bin/sh invoked with args ("-l" "-i" "-c" "/usr/bin/printf '__RESULT\\000%s\\000%s\\000__RESULT' \"${PATH-2bfaad800615049564580\
26191a73346}\" \"${MANPATH-2bfaad80061504956458026191a73346}\"").  Output was:
"Illegal option -l
"

I got this output from exec-path-from-shell on FreeBSD13. Ther is no such an option on FreeBSD's /bin/sh. Can we do something with it?

purcell commented 2 years ago

Interesting. Which shell is /bin/sh on FreeBSD? You can certainly override exec-path-from-shell-arguments to remove -l from the defaults in this case.

dertuxmalwieder commented 3 months ago

Which shell is /bin/sh on FreeBSD?

A variant of the Almquist shell, mostly.