summaryrefslogtreecommitdiff
path: root/Src/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 4772e0a8c..d274ef9ad 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -1296,10 +1296,12 @@ bin_fc(char *nam, char **argv, Options ops, int func)
Patprog pprog = NULL;
/* fc is only permitted in interactive shells */
+#ifdef FACIST_INTERACTIVE
if (!interact) {
zwarnnam(nam, "not interactive shell");
return 1;
}
+#endif
if (OPT_ISSET(ops,'p')) {
char *hf = "";
zlong hs = DEFAULT_HISTSIZE;