commit bash-20110325 snapshot

This commit is contained in:
Chet Ramey
2011-12-29 13:05:52 -05:00
parent 7df0c1b2df
commit c1854f2dd6
36 changed files with 13716 additions and 1532 deletions
+3 -2
View File
@@ -351,6 +351,7 @@ void
save_history ()
{
char *hf;
int r;
hf = get_string_value ("HISTFILE");
if (hf && *hf && file_exists (hf))
@@ -360,9 +361,9 @@ save_history ()
using_history ();
if (history_lines_this_session <= where_history () || force_append_history)
append_history (history_lines_this_session, hf);
r = append_history (history_lines_this_session, hf);
else
write_history (hf);
r = write_history (hf);
sv_histsize ("HISTFILESIZE");
}
}