aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDato Simó2014-09-14 15:20:37 +0100
committerJack Nagel2014-09-14 10:54:02 -0500
commit672339b7ca08f791a485f71397b54d7de6ad020f (patch)
tree80195943cebfc890820f7ac6d3ecd36811f8ad69
parente5490011dfa37c6f104ecc8a689416b8df035c55 (diff)
downloadhomebrew-672339b7ca08f791a485f71397b54d7de6ad020f.tar.bz2
emacs: make the "emacs" wrapper call its binary with "exec"
This prevents leaving around a lingering bash process whenever /usr/local/bin/emacs is invoked. Closes #32301. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/emacs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb
index 08992a3f1..1d9a209ea 100644
--- a/Library/Formula/emacs.rb
+++ b/Library/Formula/emacs.rb
@@ -123,7 +123,7 @@ class Emacs < Formula
(bin/"emacs").unlink # Kill the existing symlink
(bin/"emacs").write <<-EOS.undent
#!/bin/bash
- #{prefix}/Emacs.app/Contents/MacOS/Emacs -nw "$@"
+ exec #{prefix}/Emacs.app/Contents/MacOS/Emacs -nw "$@"
EOS
else
if build.with? "x"