From 0efb822671aba7ddfca87bbfc7d36272d6e20066 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 25 Nov 2015 17:23:22 -0500 Subject: [PATCH] osx: Fix unescaped shell argument in narf-open-with --- core/core-os-osx.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core-os-osx.el b/core/core-os-osx.el index 278a124b7..3a4eb8f1d 100644 --- a/core/core-os-osx.el +++ b/core/core-os-osx.el @@ -65,7 +65,7 @@ (buffer-file-name)))))) (command (format "open %s" (if app-name - (format "-a %s %s" (shell-quote-argument app-name) path) + (format "-a %s '%s'" (shell-quote-argument app-name) path) (format "'%s'" path))))) (message "Running: %s" command) (shell-command command)))