]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dired switch (that contain quotes and spaces) parsing
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Aug 2021 14:21:07 +0000 (16:21 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 19 Aug 2021 14:21:07 +0000 (16:21 +0200)
* lisp/files.el (insert-directory): Tokenize shell strings
correctly (bug#18875).

lisp/files.el

index 875ac55316625a7081997de2e6f0070cdd9888d6..77977f141163aaf080b791b7865802e0bb13d124 100644 (file)
@@ -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))))))