如果使用过bash的命令行功能,就会涉及到readline这个包,在《UNIX shell范例精解(第4版)》这本书中P650中 Ellie Quigley提到:“bash shell 提供两个内置的编辑器,emacs和vi,可以用来交互地编辑历史清单。在命令行使用编辑特性时,不管是在vi还是emacs模式下,都由readline函数决定按键所完成的功能。”
在我的Fedora 13系统中:
#rpm -q readline
readlin-6.1-2.fc13.i686
#rpm -qi readline
Size: 405349
Summary: A library for editing typed command lines
Description:
The Readline library provides a set of functions that allow users to edit command lines. Both Emacs and vi editing modes are available. The Readline library includes additional functions for maintaining a list of previously-entered command lines for recalling or editing those lines, and for performing csh-like history expansion on previous commands.
阅读(649) | 评论(0) | 转发(0) |