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)) " "))