Skip to content

Commit 3f60f25

Browse files
if we're in a busybox/ash shell, but real bash is available, use bash
+ +
1 parent 03a0cce commit 3f60f25

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

debian/changelog

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
byobu (6.7) unreleased; urgency=medium
2+
3+
* usr/bin/byobu.in:
4+
- if we're in a busybox/ash shell, but real bash is available, use bash
5+
6+
-- Dustin Kirkland <[email protected]> Sat, 20 Jan 2024 20:49:21 -0600
7+
18
byobu (6.6) released; urgency=medium
29

310
* usr/share/byobu/profiles/bashrc:

usr/bin/byobu.in

+9-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# byobu - wrapper script
44
# Copyright (C) 2008-2009 Canonical Ltd.
5-
# Copyright (C) 2008-2014 Dustin Kirkland
5+
# Copyright (C) 2008-2024 Dustin Kirkland
66
#
77
# Authors: Dustin Kirkland <[email protected]>
88
#
@@ -18,7 +18,7 @@
1818
# You should have received a copy of the GNU General Public License
1919
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2020

21-
VERSION=5.134
21+
VERSION=6.7
2222
PKG="byobu"
2323

2424
# All sorts of things go wrong if you don't own your $HOME dir.
@@ -32,6 +32,13 @@ if [ ! -O "$HOME" ]; then
3232
exit 1
3333
fi
3434

35+
# If we're in a busybox/ash shell (or shell is undefined),
36+
# and a full bash shell is available, then please let's use bash in byobu.
37+
# Other shells are supported, but your mileage may vary...
38+
if [ "$SHELL" = "/bin/ash" ] || [ "$SHELL" = "ash" ] || [ -z "$SHELL" ]; then
39+
[ -x "/bin/bash" ] && export SHELL="/bin/bash"
40+
fi
41+
3542
# Source local byobu config
3643
if [ -r "$HOME/.byoburc" ]; then
3744
# Ensure that this configuration is usable

0 commit comments

Comments
 (0)