Skip to content

Commit

Permalink
emacs: make the "emacs" wrapper call its binary with "exec"
Browse files Browse the repository at this point in the history
This prevents leaving around a lingering bash process whenever
/usr/local/bin/emacs is invoked.

Closes Homebrew/legacy-homebrew#32301.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
  • Loading branch information
dato authored and jacknagel committed Sep 14, 2014
1 parent 9062462 commit c0b7896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/emacs.rb
Expand Up @@ -123,7 +123,7 @@ def install
(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"
Expand Down

0 comments on commit c0b7896

Please sign in to comment.