Allow handling of ^[# on the command line.
This commit is contained in:
parent
a361e68843
commit
457e5a6a3f
5
reader.c
5
reader.c
|
@ -134,6 +134,11 @@ static int do_command(char *arg, int interactive)
|
||||||
arg = translated;
|
arg = translated;
|
||||||
cmd_text = get_arg(&arg);
|
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)) {
|
if (!cmddb_get(cmd_text, &cmd)) {
|
||||||
int old = in_reader_loop;
|
int old = in_reader_loop;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
Loading…
Reference in New Issue