From 67befc1f5a5492fee5fb3891083df77831ec830e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20T=C3=A1vora?= Date: Thu, 2 Mar 2023 13:27:14 +0000 Subject: [PATCH] Eglot: use shell-file-name in eglot--cmd (bug#61748) * lisp/progmodes/eglot.el (eglot--cmd): Use shell-file-name. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 36aafac8938..b17370ebf8b 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -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 doesn’t 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)) " "))