From 384bcc6495e2c1ae0e0f54707506cd50a39a59e0 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 12 May 2002 16:42:26 +0000 Subject: [PATCH] (dired-show-file-type): Use -- to say FILE's not option. --- lisp/dired-aux.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index ed8c3247f82..8d2b66fe12d 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -2022,8 +2022,8 @@ true then the type of the file linked to by FILE is printed instead." (interactive (list (dired-get-filename t) current-prefix-arg)) (with-temp-buffer (if deref-symlinks - (call-process "file" nil t t "-L" file) - (call-process "file" nil t t file)) + (call-process "file" nil t t "-L" "--" file) + (call-process "file" nil t t "--" file)) (when (bolp) (backward-delete-char 1)) (message (buffer-string)))) -- 2.39.5