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:
parent
9062462111
commit
c0b78962d6
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue