changeset 46086:8f770863ba00

(dired-view-file): Quote file name for dired-run-shell-command.
author Andreas Schwab <schwab@suse.de>
date Sat, 29 Jun 2002 17:40:14 +0000
parents 33538dc6ac79
children 393e6d989d19
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Fri Jun 28 22:45:16 2002 +0000
+++ b/lisp/dired.el	Sat Jun 29 17:40:14 2002 +0000
@@ -1,6 +1,6 @@
 ;;; dired.el --- directory-browsing commands
 
-;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001
+;; Copyright (C) 1985, 86, 92, 93, 94, 95, 96, 1997, 2000, 2001, 2002
 ;;  Free Software Foundation, Inc.
 
 ;; Author: Sebastian Kremer <sk@thp.uni-koeln.de>
@@ -1407,7 +1407,8 @@
 	  (if (string-match (car elt) file)
 	      (setq cmd (cdr elt))))
 	(if cmd
-	    (dired-run-shell-command (concat cmd " " file))
+	    (dired-run-shell-command (concat cmd " "
+					     (shell-quote-argument file)))
 	  (view-file file))))))
 
 (defun dired-find-file-other-window ()