diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 4099c48259..b7158ae982 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -178,7 +178,7 @@ def exec_editor *args # Invoke bash to evaluate env vars in $EDITOR # This also gets us proper argument quoting. # See: https://github.com/mxcl/homebrew/issues/5123 - system "bash", "-c", which_editor + ' "$@"', "--", *args + system "bash", "-i", "-c", which_editor + ' "$@"', "--", *args end # GZips the given paths, and returns the gzipped paths