emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 06c3a32 3/3: Revert "Fix dired switch (that contain quotes and sp


From: Lars Ingebrigtsen
Subject: master 06c3a32 3/3: Revert "Fix dired switch (that contain quotes and spaces) parsing"
Date: Sun, 22 Aug 2021 10:59:10 -0400 (EDT)

branch: master
commit 06c3a321e3cb7a7602fadf1817721a8f1b759604
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 ba36282..e519a8e 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))))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]