Skip to content

Commit

Permalink
Revert "Fix dired switch (that contain quotes and spaces) parsing"
Browse files Browse the repository at this point in the history
This reverts commit 04f723d.

The dired switches are documented to not follow shell syntax, but instead
uses a lisp-in-string-form kind of quoting.
  • Loading branch information
larsmagne committed Aug 22, 2021
1 parent 16bb524 commit 06c3a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/files.el
Expand Up @@ -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))))))
Expand Down

0 comments on commit 06c3a32

Please sign in to comment.