From 04bea9e06009c4a073101bed8a251597002d13c3 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Tue, 29 Aug 2017 16:44:25 +0200 Subject: emacs: --run-async: Quote shell arguments This is important for filenames with special characters such as spaces and parenthesis. --- contrib/emacs/password-store.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'contrib') diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el index 879eb2f..02ff1b8 100644 --- a/contrib/emacs/password-store.el +++ b/contrib/emacs/password-store.el @@ -83,10 +83,11 @@ outputs error message on failure." "Run pass asynchronously with ARGS. Nil arguments are ignored." - (with-editor-async-shell-command - (mapconcat 'identity - (cons password-store-executable - (delq nil args)) " "))) + (let ((args (mapcar #'shell-quote-argument args))) + (with-editor-async-shell-command + (mapconcat 'identity + (cons password-store-executable + (delq nil args)) " ")))) (defun password-store--run-init (gpg-ids &optional folder) (apply 'password-store--run "init" -- cgit v1.2.3