From 890392df61c0da05e1393f784a6af0b4d32ef0df Mon Sep 17 00:00:00 2001 From: Nicolas Petton Date: Mon, 8 Jan 2018 17:33:53 +0100 Subject: [PATCH] counsel.el (counsel-locate-action-extern): Refactor Use start-process-shell-command which already calls call-process with shell-file-name. --- counsel.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/counsel.el b/counsel.el index eb20846a..5214bf0e 100644 --- a/counsel.el +++ b/counsel.el @@ -1932,9 +1932,7 @@ string - the full shell command to run." (if (and (eq system-type 'windows-nt) (fboundp 'w32-shell-execute)) (w32-shell-execute "open" x) - (call-process shell-file-name nil - nil nil - shell-command-switch + (start-process-shell-command shell-file-name nil (format "%s %s" (cl-case system-type (darwin "open")