*** ../bash-4.2-patched/builtins/history.def 2009-01-04 14:32:22.000000000 -0500 --- builtins/history.def 2011-10-22 22:43:11.000000000 -0400 *************** *** 325,331 **** history, change #if 0 to #if 1 below. */ #if 0 ! if (hist_last_line_pushed == 0 && hist_last_line_added && bash_delete_last_history () == 0) #else ! if (hist_last_line_pushed == 0 && (hist_last_line_added || (current_command_line_count > 0 && current_command_first_line_saved && command_oriented_history)) --- 325,332 ---- history, change #if 0 to #if 1 below. */ #if 0 ! if (remember_on_history && hist_last_line_pushed == 0 && ! hist_last_line_added && bash_delete_last_history () == 0) #else ! if (remember_on_history && hist_last_line_pushed == 0 && (hist_last_line_added || (current_command_line_count > 0 && current_command_first_line_saved && command_oriented_history))