so that a file name or pattern is never taken as an option.
(if (stringp switches)
switches
(mapconcat 'identity switches " "))
- " "
+ " -- "
pattern)))
;; SunOS 4.1.3, SVr4 and others need the "." to list the
;; directory if FILE is a symbolic link.
switches (substring switches (match-end 0))))
(setq list (nreverse (cons switches list))))))
(append list
+ ;; Avoid lossage if FILE starts with `-'.
+ '("--")
(list
(if full-directory-p
(concat (file-name-as-directory file) ".")