diff --git a/lisp/progmodes/grep.el b/lisp/progmodes/grep.el index 388ff1a43dd..17905dec2eb 100644 --- a/lisp/progmodes/grep.el +++ b/lisp/progmodes/grep.el @@ -797,7 +797,7 @@ The value depends on `grep-command', `grep-template', (format "%s -H -type f -print | \"%s\" %s" find-program xargs-program gcmd)))))) - (setq grep-quoting-style remote))) + (setq grep-quoting-style (and remote 'posix)))) ;; Save defaults for this host. (setq grep-host-defaults-alist