From 06c3a321e3cb7a7602fadf1817721a8f1b759604 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 22 Aug 2021 16:58:19 +0200 Subject: [PATCH] Revert "Fix dired switch (that contain quotes and spaces) parsing" This reverts commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd. The dired switches are documented to not follow shell syntax, but instead uses a lisp-in-string-form kind of quoting. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index ba362827ee7..e519a8ea8b6 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -7501,7 +7501,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-shell-command switches))) + (split-string-and-unquote switches))) ;; Avoid lossage if FILE starts with `-'. '("--") (list file)))))) -- 2.39.5