summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index fe1a7234d7a..a7414a787e3 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2661,7 +2661,7 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'."
(setq list (cons (substring switches 0 (match-beginning 0))
list)
switches (substring switches (match-end 0))))
- (setq list (cons switches list)))))
+ (setq list (cons (nreverse switches) list)))))
(append list
(list
(if full-directory-p