aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-09-20 11:42:19 -0500
committerJack Nagel2014-09-20 11:42:19 -0500
commitdb1733f9a0d19cd47cb3be80e529087d5213e4f1 (patch)
tree2934d53758a9f01e12b0f3e0df33e73edfc192b3 /Library
parentc6b29cb671f198347d01c616e90bda3d495e1906 (diff)
downloadhomebrew-db1733f9a0d19cd47cb3be80e529087d5213e4f1.tar.bz2
Stop invoking the editor through an interactive shell
This was added in d2ecfb9 / #12784 to fix a bug repotted in #12779, but at that time we were invoking the editor via `system` rather than `exec`. Now we are using exec, and running it through an interactive shell seems to cause other problems, for example, emacs does not suspend/resume properly. Fixes #32328.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index fa2f430e3..ede63b5f6 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -212,7 +212,7 @@ end
def safe_exec cmd, *args
# This buys us proper argument quoting and evaluation
# of environment variables in the cmd parameter.
- exec "/bin/sh", "-i", "-c", cmd + ' "$@"', "--", *args
+ exec "/bin/sh", "-c", "#{cmd} \"$@\"", "--", *args
end
# GZips the given paths, and returns the gzipped paths