Another tool for ‘Command Line History’

看到 Tom 在介绍 rlwrap –另一个可以用来在 Linux 上回调命令行的工具。

rlwrap is a ‘readline wrapper’ that uses the GNU readline library to allow the editing of keyboard input for any other command. Input history is remembered across invocations, separately for each command; history completion and search work as in bash and completion word lists can be specified on the command line.

Howard J.Rogers 写了一篇介绍文档,并把该工具打包为 RPM 文件。

此前,我曾介绍过 uniread (universal readline ),描述了 利用Uniread 解决 Linux下的SQL*Plus 命令行历史回调功能

这两个工具都需要 GNU readline library 的支持。相比之下,rlwrap 安装简便,但是通用性不太强。

还有类似的工具么?在 rlwrap 的说明文件中看到另外一个类似功能的工具:CLE(Command Line Editor)。该工具的发布时间比较早:1999,目前是 0.4 版本

其实Oracle早就应该对 SQL*Plus 工具添加类似的功能了,不过,一个问题总会有开源方式的解决办法,不是么?


One thought on “Another tool for ‘Command Line History’

Leave a Reply

Your email address will not be published. Required fields are marked *