bash 4有哪些新功能?


8

到目前为止,我一直在使用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.
$

与版本3相比,版本4的主要更改/功能有哪些?


1
顺便说一句,可以通过键入Ctrl ^ xv获得当前运行的bash版本
Theophrastus

Answers:


7

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

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


1
还有一个autocd选项-看起来不多,但是作为zsh用户,这是我偶尔使用bash(<4或未配置)时最想念的东西。
吉尔(Gilles)“所以,别再邪恶了”,2010年

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.