summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-02-13 15:32:35 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2008-02-13 15:32:35 -0800
commit10f1fb8bdfb9efedb269dbe3225102dbf992a8cf (patch)
tree7c7a95e710d023d12ddf8a054ebfb351ef9fa46b /eval.c
parente4cd0a0d691924ac2e6d664f7e59a48aef722279 (diff)
downloadvyatta-bash-10f1fb8bdfb9efedb269dbe3225102dbf992a8cf.tar.gz
vyatta-bash-10f1fb8bdfb9efedb269dbe3225102dbf992a8cf.zip
fix for bug 2604: shell accepts '!' by default
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 6c9508b..82b8496 100644
--- a/eval.c
+++ b/eval.c
@@ -223,6 +223,8 @@ parse_command ()
send_pwd_to_eterm (); /* Yuck */
}
+ vyatta_reset_hist_expansion();
+
current_command_line_count = 0;
r = yyparse ();
@@ -236,6 +238,8 @@ parse_command ()
current_readline_line[1] = '\0';
return 1;
}
+ } else if (interactive && current_readline_line) {
+ vyatta_check_expansion(global_command);
}
#endif