if we're in a busybox/ash shell, but real bash is available, use bash

+
+
This commit is contained in:
Dustin Kirkland 2024-01-20 20:50:42 -06:00
parent 03a0ccea03
commit 3f60f2527c
2 changed files with 16 additions and 2 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
byobu (6.7) unreleased; urgency=medium
* usr/bin/byobu.in:
- if we're in a busybox/ash shell, but real bash is available, use bash
-- Dustin Kirkland <kirkland@ubuntu.com> Sat, 20 Jan 2024 20:49:21 -0600
byobu (6.6) released; urgency=medium
* usr/share/byobu/profiles/bashrc:

View file

@ -2,7 +2,7 @@
#
# byobu - wrapper script
# Copyright (C) 2008-2009 Canonical Ltd.
# Copyright (C) 2008-2014 Dustin Kirkland
# Copyright (C) 2008-2024 Dustin Kirkland
#
# Authors: Dustin Kirkland <kirkland@byobu.org>
#
@ -18,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
VERSION=5.134
VERSION=6.7
PKG="byobu"
# All sorts of things go wrong if you don't own your $HOME dir.
@ -32,6 +32,13 @@ if [ ! -O "$HOME" ]; then
exit 1
fi
# If we're in a busybox/ash shell (or shell is undefined),
# and a full bash shell is available, then please let's use bash in byobu.
# Other shells are supported, but your mileage may vary...
if [ "$SHELL" = "/bin/ash" ] || [ "$SHELL" = "ash" ] || [ -z "$SHELL" ]; then
[ -x "/bin/bash" ] && export SHELL="/bin/bash"
fi
# Source local byobu config
if [ -r "$HOME/.byoburc" ]; then
# Ensure that this configuration is usable