Merge branch 'fc/disable-checkwinsize'
* fc/disable-checkwinsize: test: fix for COLUMNS and bash 5
This commit is contained in:
commit
c87977a0c5
@ -409,6 +409,12 @@ then
|
||||
verbose=t
|
||||
fi
|
||||
|
||||
# Since bash 5.0, checkwinsize is enabled by default which does
|
||||
# update the COLUMNS variable every time a non-builtin command
|
||||
# completes, even for non-interactive shells.
|
||||
# Disable that since we are aiming for repeatability.
|
||||
test -n "$BASH_VERSION" && shopt -u checkwinsize 2>/dev/null
|
||||
|
||||
# For repeatability, reset the environment to known value.
|
||||
# TERM is sanitized below, after saving color control sequences.
|
||||
LANG=C
|
||||
|
Loading…
Reference in New Issue
Block a user