Run the regress/style-trim.sh test in a plain Bash session, from Koichi Murase.

This commit is contained in:
Nicholas Marriott
2025-04-29 17:29:32 +01:00
parent 3a3babf597
commit 345a45083d

View File

@ -3,13 +3,26 @@
PATH=/bin:/usr/bin PATH=/bin:/usr/bin
TERM=screen TERM=screen
shell=
if command -v bash >/dev/null 2>&1; then
# If Bash is available, we start a plain Bash session (without any user
# configuration files) for testing.
#
# Note: We disable the command history by passing "+o history". If an
# interactive Bash session is started without any configuration files,
# the user's command history may be truncated to the default maximum
# size of 500. To avoid breaking the user's command history, we disable
# the command history.
shell='bash --noprofile --norc +o history'
fi
[ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux) [ -z "$TEST_TMUX" ] && TEST_TMUX=$(readlink -f ../tmux)
TMUX="$TEST_TMUX -Ltest" TMUX="$TEST_TMUX -Ltest"
$TMUX kill-server 2>/dev/null $TMUX kill-server 2>/dev/null
TMUX2="$TEST_TMUX -Ltest2" TMUX2="$TEST_TMUX -Ltest2"
$TMUX2 kill-server 2>/dev/null $TMUX2 kill-server 2>/dev/null
$TMUX2 -f/dev/null new -d "$TMUX -f/dev/null new" $TMUX2 -f/dev/null new -d "$TMUX -f/dev/null new -- $shell"
sleep 2 sleep 2
$TMUX set -g status-style fg=default,bg=default $TMUX set -g status-style fg=default,bg=default