commit:     b9b90a4f6c93c746336ef8c2e802bc3825c550fb
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 15 19:46:36 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Mar 15 19:46:36 2025 +0000
URL:        https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=b9b90a4f

Default to bash as the login shell

* emacs-wrapper.sh: Default to bash when SHELL is unset.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ChangeLog        | 4 ++++
 emacs-wrapper.sh | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 7c5f6b4..01e11ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2025-03-15  Ulrich Müller  <[email protected]>
+
+       * emacs-wrapper.sh: Default to bash when SHELL is unset.
+
 2025-03-09  Ulrich Müller  <[email protected]>
 
        * Version 1.11 released.

diff --git a/emacs-wrapper.sh b/emacs-wrapper.sh
index 22c8cd9..fc19b27 100644
--- a/emacs-wrapper.sh
+++ b/emacs-wrapper.sh
@@ -1,3 +1,3 @@
 #!/bin/bash
 # Start Emacs with a login shell wrapper to read the user's profile
-exec -l "${SHELL}" -c "exec \"${EMACS}\" $*"
+exec -l "${SHELL:-/bin/bash}" -c "exec \"${EMACS}\" $*"

Reply via email to