diff --git a/core/core-cli.el b/core/core-cli.el index 8a9fd717b..3865a0829 100644 --- a/core/core-cli.el +++ b/core/core-cli.el @@ -391,10 +391,10 @@ packages and regenerates the autoloads file." (unless (file-exists-p newbin) (error "Failed to copy %s to %s" oldbin newbin)) (with-temp-buffer - (insert "#!/usr/bin/env bash\n" + (insert "#!/bin/bash\n" "args=\"$@\"\n" "pwd=\"$(cd \"$(dirname \"${BASH_SOURCE[0]}\")\"; pwd -P)\"\n" - "exec \"$SHELL\" -c \"$pwd/RunEmacs $args\"") + "exec \"$SHELL\" -l -c \"$pwd/RunEmacs $args\"") (write-file oldbin) (chmod oldbin (file-modes newbin))) (message "%s successfully patched" appdir)))))