emacs-diffs
[Top][All Lists]
Advanced

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

master 04f723d 1/2: Fix dired switch (that contain quotes and spaces) pa


From: Lars Ingebrigtsen
Subject: master 04f723d 1/2: Fix dired switch (that contain quotes and spaces) parsing
Date: Thu, 19 Aug 2021 11:11:08 -0400 (EDT)

branch: master
commit 04f723dec944eaa7b5e99373840a8bf920ba5fdd
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 875ac55..77977f1 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))))))



reply via email to

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