osx: Fix unescaped shell argument in narf-open-with

This commit is contained in:
Henrik Lissner 2015-11-25 17:23:22 -05:00
parent 072d2e65f5
commit 0efb822671

View file

@ -65,7 +65,7 @@
(buffer-file-name)))))) (buffer-file-name))))))
(command (format "open %s" (command (format "open %s"
(if app-name (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))))) (format "'%s'" path)))))
(message "Running: %s" command) (message "Running: %s" command)
(shell-command command))) (shell-command command)))