From 9345e57859eda273d2d14346fa48e15b109fbe2d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 7 Oct 2013 11:43:55 +0100 Subject: 31793: Fix problem with non-interactive history. Modify 31789 so it doesn't try to save history from hbegin() in that case. --- Src/hist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/hist.c') diff --git a/Src/hist.c b/Src/hist.c index 1961d8350..c58ce8b34 100644 --- a/Src/hist.c +++ b/Src/hist.c @@ -928,7 +928,7 @@ hbegin(int dohist) histactive = HA_ACTIVE | HA_NOINC; hf = getsparam("HISTFILE"); - if (isset(INCAPPENDHISTORY)) + if (isset(INCAPPENDHISTORY) && !(histactive & HA_NOINC) && !strin) savehistfile(hf, 0, HFILE_USE_OPTIONS | HFILE_FAST); } -- cgit 1.4.1