From c9cebcb1e54dec2ca310cacafc45316eea0dc950 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 31 Dec 1993 09:26:43 +0000 Subject: [PATCH] (diff): Call shell-quote-argument. --- lisp/diff.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lisp/diff.el b/lisp/diff.el index e301aa70a6e..82a657f4ecc 100644 --- a/lisp/diff.el +++ b/lisp/diff.el @@ -207,8 +207,10 @@ With prefix arg, prompt for diff switches." (list diff-switches))) (if (or old-alt new-alt) (list "-L" old "-L" new)) - (list (or old-alt old)) - (list (or new-alt new))) + (list + (shell-quote-argument (or old-alt old))) + (list + (shell-quote-argument (or new-alt new)))) " "))) (setq buf (compile-internal command -- 2.39.5