On Mon, May 08, 2017 at 07:43:27PM -0400, Chet Ramey wrote: > If you want a workaround that should work in bash-4.2 and bash-4.3, try > using some large number (people have used 9999) for HISTSIZE, giving you > effectively unlimited history.
Or check $BASH_VERSION (or ${BASH_VERSINFO[@]}) before deciding which value of HISTSIZE to use.