The release of the command interpreter Bash 5.0

  • News
Yesterday a new version of the command interpreter Bash 5.0 was published , which was developed for about two and a half years. In addition, the release of the library readline 8.0 , which is directly related to the command line.

Increasing the Bash version number is due to a number of changes that break backward compatibility. Such changes include processing of the code associated with processing nameref reference variables, updating the approach to using readline 8.0 variables. In order to install Bash 5.0, you need the readline 8.0 library, otherwise you will not be able to upgrade.

Among the new functions, we can distinguish new environment variables BASH_ARGV0 (takes on the value of $ 0), EPOCHSECONDS (epoch-making time in seconds) and EPOCHREALTIME (epoch-making time with an accuracy of microseconds).

The history built-in command adds support for element-by-element deletion of records from the database with logging of operations, plus it is possible to specify negative values ​​as the offset of the first record to be deleted relative to the end of the list.

The developers added the “localvar_inherit” option, it allows local variables to inherit the value of a variable with the same names that are defined in the upstream scope.

The “assoc_expand_once” option has appeared, when installed, the shell discards associative array indices only once, as well as the globasciiranges option, which allows the use of masks to define character ranges ([az]).

A complete list of changes can be found here (English) and here (Russian).

Also popular now: