bash 4 有哪些新功能?

Laz*_*zer 8 shell bash

到目前为止,我一直在使用 bash3,并且刚刚获得了最新版本的副本

$ ./bash --version
GNU bash, version 4.1.0(1)-release (i686-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$
Run Code Online (Sandbox Code Playgroud)

与版本 3 相比,版本 4 中的主要更改/功能添加是什么?

sep*_*p2k 7

NEWS文件列出了每个版本中添加的功能。

最值得注意的是,在 4.0 中,我看到了对自动完成基础结构、(可选)添加的**glob 运算符、关联数组和各种语法快捷方式的一些改进。