Skip to content

Commit

Permalink
Fix dired switch (that contain quotes and spaces) parsing
Browse files Browse the repository at this point in the history
* lisp/files.el (insert-directory): Tokenize shell strings
correctly (bug#18875).
  • Loading branch information
larsmagne committed Aug 19, 2021
1 parent a44432a commit 04f723d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/files.el
Expand Up @@ -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))))))
Expand Down

0 comments on commit 04f723d

Please sign in to comment.