From: Lars Ingebrigtsen Date: Thu, 19 Aug 2021 14:21:07 +0000 (+0200) Subject: Fix dired switch (that contain quotes and spaces) parsing X-Git-Tag: emacs-28.0.90~1431 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=04f723dec944eaa7b5e99373840a8bf920ba5fdd;p=emacs.git Fix dired switch (that contain quotes and spaces) parsing * lisp/files.el (insert-directory): Tokenize shell strings correctly (bug#18875). --- diff --git a/lisp/files.el b/lisp/files.el index 875ac553166..77977f14116 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))))))