From 77119afe19a781251e77a369db1dc9c8556055a0 Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Thu, 24 Jul 2014 08:33:13 -0700 Subject: unposted (see 32892): 'fc -I' is an error --- Src/builtin.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/builtin.c') diff --git a/Src/builtin.c b/Src/builtin.c index 42354b928..34a52962e 100644 --- a/Src/builtin.c +++ b/Src/builtin.c @@ -1422,6 +1422,10 @@ bin_fc(char *nam, char **argv, Options ops, int func) unqueue_signals(); return 0; } + if (OPT_ISSET(ops,'I')) { + zwarnnam(nam, "-I requires one of -R/-W/-A"); + return 1; + } if (zleactive) { zwarnnam(nam, "no interactive history within ZLE"); -- cgit 1.4.1