about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
-rw-r--r--Src/exec.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 6b5ca4e8e..7dd9317b1 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1208,8 +1208,6 @@ bin_fc(char *nam, char **argv, char *ops, int func)
 	savehistfile(*argv, 1, HFILE_APPEND | (ops['I'] ? HFILE_SKIPOLD : 0));
 	return 0;
     }
-    if (!(ops['l'] && unset(HISTNOSTORE)))
-	remhist();
     /* put foo=bar type arguments into the substitution list */
     while (*argv && equalsplit(*argv, &s)) {
 	Asgment a = (Asgment) zhalloc(sizeof *a);
diff --git a/Src/exec.c b/Src/exec.c
index 7896bb3a0..027c11ca2 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3120,8 +3120,6 @@ execfuncdef(Estate state, int do_exec)
 	}
 	shfunctab->addnode(shfunctab, ztrdup(s), shf);
     }
-    if (isset(HISTNOFUNCTIONS))
-	remhist();
     state->pc = end;
     return 0;
 }