From 75aa369102b882e916f35821e57bd4ba1045604d Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Wed, 3 Apr 2019 23:49:37 +0200 Subject: [PATCH] Fix support for `HOMEBREW_EDITOR` with args. --- Library/Homebrew/utils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index d4fe1385cd..97d1a825e4 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -321,7 +321,7 @@ end def exec_editor(*args) puts "Editing #{args.join "\n"}" - with_homebrew_path { safe_system(which_editor, *args) } + with_homebrew_path { safe_system(*which_editor.shellsplit, *args) } end def exec_browser(*args)