Eglot: use shell-file-name in eglot--cmd (bug#61748)

* lisp/progmodes/eglot.el (eglot--cmd): Use shell-file-name.
This commit is contained in:
João Távora 2023-03-02 13:27:14 +00:00
parent 1c7b2673bd
commit 67befc1f5a

View file

@ -1206,7 +1206,7 @@ Each function is passed the server as an argument")
;;
;; Not only does this seem like there should be a better way,
;; but it almost certainly doesnt work on non-unix systems.
(list "sh" "-c"
(list shell-file-name "-c"
(string-join (cons "stty raw > /dev/null;"
(mapcar #'shell-quote-argument contact))
" "))