From 04f723dec944eaa7b5e99373840a8bf920ba5fdd Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 19 Aug 2021 16:21:07 +0200 Subject: [PATCH] Fix dired switch (that contain quotes and spaces) parsing * lisp/files.el (insert-directory): Tokenize shell strings correctly (bug#18875). --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 875ac553166..77977f14116 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -7463,7 +7463,7 @@ normally equivalent short `-D' option is just passed on to (unless (equal switches "") ;; Split the switches at any spaces so we can ;; pass separate options as separate args. - (split-string-and-unquote switches))) + (split-string-shell-command switches))) ;; Avoid lossage if FILE starts with `-'. '("--") (list file)))))) -- 2.39.2