]> git.eshelyaron.com Git - emacs.git/commitdiff
Eglot: use shell-file-name in eglot--cmd (bug#61748)
authorJoão Távora <joaotavora@gmail.com>
Thu, 2 Mar 2023 13:27:14 +0000 (13:27 +0000)
committerJoão Távora <joaotavora@gmail.com>
Thu, 2 Mar 2023 13:42:15 +0000 (13:42 +0000)
* lisp/progmodes/eglot.el (eglot--cmd): Use shell-file-name.

lisp/progmodes/eglot.el

index 36aafac89385264a0706d13840690f60c8b1eeb7..b17370ebf8beebb384ed53e5dcd48ceded836851 100644 (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 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))
                          " "))