diff options
author | Chet Ramey <chet.ramey@case.edu> | 2012-01-09 08:30:31 -0500 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2012-01-09 08:30:31 -0500 |
commit | 3d4f66ca82a2819ef60968490facc00d27aed87f (patch) | |
tree | 9d65a9d8110f3bc9f431e1974eae46072c63c4cd /builtins/history.def | |
parent | c5402025f163afaf66b54f1ed57a17d16c61a284 (diff) | |
download | bash-3d4f66ca82a2819ef60968490facc00d27aed87f.tar.gz |
commit bash-20111021 snapshot
Diffstat (limited to 'builtins/history.def')
-rw-r--r-- | builtins/history.def | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/builtins/history.def b/builtins/history.def index e8249e99..4cf7308f 100644 --- a/builtins/history.def +++ b/builtins/history.def @@ -324,9 +324,10 @@ push_history (list) If you don't want history -s to remove the compound command from the 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) + if (remember_on_history && hist_last_line_pushed == 0 && + hist_last_line_added && bash_delete_last_history () == 0) #else - if (hist_last_line_pushed == 0 && + 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)) && bash_delete_last_history () == 0) |