Function: dired-safe-switches-p
dired-safe-switches-p is a byte-compiled function defined in
dired.el.gz.
Signature
(dired-safe-switches-p SWITCHES)
Documentation
Return non-nil if string SWITCHES does not look risky for Dired.
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
;; Beware of "-l;reboot" etc. See bug#3230.
(defun dired-safe-switches-p (switches)
"Return non-nil if string SWITCHES does not look risky for Dired."
(or (not switches)
(and (stringp switches)
(< (length switches) 100) ; arbitrary
(string-match-p "\\` *-[- [:alnum:]]+\\'" switches))))