On Fri, Apr 2, 2021 at 3:02 AM konsolebox <konsole...@gmail.com> wrote: > > On Fri, Apr 2, 2021 at 2:56 AM Chet Ramey <chet.ra...@case.edu> wrote: > > > > On 4/1/21 2:55 PM, konsolebox wrote: > > > > > So to keep compatibility, would this be the right way? > > > > > > if [[ BASH_VERSINFO -ge 6 || BASH_VERSINFO -eq 5 && BASH_VERSINFO -ge 2 > > > ]]; then
Here `BASH_VERSINFO -ge 2` should be `BASH_VERSINFO[1] -ge 2` sorry. The condition presumes that the next version that would keep the new behavior of unset to be 5.2. -- konsolebox