commit bash-20120713 snapshot

This commit is contained in:
Chet Ramey
2012-08-13 11:55:46 -04:00
parent 9f178efb2e
commit 49cf78286e
34 changed files with 34467 additions and 3260 deletions
+2
View File
@@ -940,7 +940,9 @@ edit_and_execute_command (count, c, editing_mode, edit_command)
/* This breaks down when using command-oriented history and are not
finished with the command, so we should not ignore the last command */
using_history ();
current_command_line_count++; /* for rl_newline above */
bash_add_history (rl_line_buffer);
current_command_line_count = 0; /* for dummy history entry */
bash_add_history ("");
history_lines_this_session++;
using_history ();