Allow handling of ^[# on the command line.

This commit is contained in:
Tamas TEVESZ 2011-07-28 12:31:34 +02:00 committed by Daniel Beer
parent a361e68843
commit 457e5a6a3f
1 changed files with 5 additions and 0 deletions

View File

@ -134,6 +134,11 @@ static int do_command(char *arg, int interactive)
arg = translated;
cmd_text = get_arg(&arg);
/* Allow ^[# to stash a command in history without
* attempting to execute */
if (*cmd_text == '#')
return 0;
if (!cmddb_get(cmd_text, &cmd)) {
int old = in_reader_loop;
int ret;