Bash, version 4

Bash Unix Shell Scripting:
Chapter 37. Bash, versions 2, 3, and 4

Bash, version 4

Chet Ramey announced Version 4 of Bash on the 20th of February, 2009. This release has a number of significant new features, as well as some important bugfixes.

Among the new goodies:

Editorial comment

Associative arrays? Coprocesses? Whatever happened to the lean and mean Bash we have come to know and love? Could it be suffering from (horrors!) "feature creep"? Or perhaps even Korn shell envy?

Note to Chet Ramey: Please add only essential features in future Bash releases -- perhaps for-each loops and support for multi-dimensional arrays. Most Bash users won't need, won't use, and likely won't greatly appreciate complex "features" like built-in debuggers, Perl interfaces, and bolt-on rocket boosters.

Bash, version 4.1

Version 4.1 of Bash, released in May, 2010, was primarily a bugfix update.

Bash, version 4.2

Version 4.2 of Bash, released in February, 2011, contains a number of new features and enhancements, in addition to bugfixes.

Notes

To be more specific, Bash 4+ has limited support for associative arrays. It's a bare-bones implementation, and it lacks the much of the functionality of such arrays in other programming languages. Note, however, that .

Copyright 1995-2009 by Chester Ramey.

This only works with and certain other special files.

But only in conjunction with , i.e., from the command-line.

And while you're at it, consider fixing the notorious problem.