]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Fix dired switch (that contain quotes and spaces) parsing"
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 22 Aug 2021 14:58:19 +0000 (16:58 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 22 Aug 2021 14:58:19 +0000 (16:58 +0200)
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

index ba362827ee7875990996b49e1b5ac7473cab2d53..e519a8ea8b6aff719f41230e313aeb2cd7746257 100644 (file)
@@ -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))))))