为什么rlwrap回显“冗余"消息?我从键盘上键入什么? [英] Why rlwrap echos "redundantly" what I type from the keyboard?

查看:110
本文介绍了为什么rlwrap回显“冗余"消息?我从键盘上键入什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用sql * plus时,我正在linux下使用rlwrap实用程序进行命令行编辑. 除了实用程序会回显我从键盘输入的每条命令外,其他一切都很好. 例如,假设我在提示符下键入了以下语句:

I am using the rlwrap utility under linux for command line editing while using sql*plus. Everything is fine except that the utility echoes every command I enter from the keyboard. For example suppose that I typed this statement in the prompt:

SQL> select last_name from employees

同一条语句将在终端中再次回显,从而使输出看起来像:

the same statement would be echoed again in the terminal making the output looks like:

SQL> select last_name from employees
select last_name from employees

然后,当我在下一行中完成select语句时,输出将如下所示:

then when I complete the select statement on the next line, the output would look like:

SQL> select last_name from employees
select last_name from employees
  2  where department_id = 100;
where department_id = 100;

问题是,对于较大的查询,这种冗余会使终端杂乱无章, 查询很难阅读,因此任何抑制不必要输出的建议将不胜感激.

The problem is, with larger queries, this redundancy will clutter the terminal making the query hard to read, so any suggestions to suppress the unnecessary output would be really appreciated.

推荐答案

这是在vi模式下具有0.36之前的rlwrap的已知错误.您没有提到rlwrap版本和编辑模式(例如emacs或vi),但我建议您升级到rlwrap-0.37并向rlwrap作者提交错误报告

This was a known bug with pre-0.36 rlwrap in vi mode. You don't mention your rlwrap version and editing mode (i.e. emacs or vi) but I would suggest upgrading to rlwrap-0.37 and filing a bug report with the rlwrap author if that doesn't help

这篇关于为什么rlwrap回显“冗余"消息?我从键盘上键入什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆