From 4113f75f7f3e5a6f288883bb3440a7c7b0a77e84 Mon Sep 17 00:00:00 2001 From: Jim Porter Date: Sun, 9 Jun 2024 13:47:15 -0700 Subject: [PATCH] ; Use the current system's style of shell-quoting in Eshell debug logs * lisp/eshell/esh-proc.el (eshell-gather-process-output): Don't force POSIX syntax. This is less confusing when running on MS-Windows. (cherry picked from commit e1cc2d1f61836e1da08817524999878b639e6761) --- lisp/eshell/esh-proc.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/eshell/esh-proc.el b/lisp/eshell/esh-proc.el index 34db5e1c771..e05590f2542 100644 --- a/lisp/eshell/esh-proc.el +++ b/lisp/eshell/esh-proc.el @@ -360,8 +360,7 @@ Used only on systems which do not support async subprocesses.") :file-handler t))) (eshell-debug-command 'process "started external process `%s'\n\n%s" proc - (mapconcat (lambda (i) (shell-quote-argument i 'posix)) - (process-command proc) " ")) + (mapconcat #'shell-quote-argument (process-command proc) " ")) (eshell-record-process-object proc) (eshell-record-process-properties proc) (when stderr-proc -- 2.39.2