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 Homebrew/homebrew#32301.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Dato Simó 2014-09-14 15:20:37 +01:00 committed by Jack Nagel
parent 9062462111
commit c0b78962d6

View file

@ -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"