From 457e5a6a3f6c5c5423633581c7745c8ff99fc035 Mon Sep 17 00:00:00 2001 From: Tamas TEVESZ Date: Thu, 28 Jul 2011 12:31:34 +0200 Subject: [PATCH] Allow handling of ^[# on the command line. --- reader.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/reader.c b/reader.c index 8189397..06b725d 100644 --- a/reader.c +++ b/reader.c @@ -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;