about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/builtin.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6e9fd6099..5d37bb323 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-07-24  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* unposted (see 32892): Src/builtins.c: 'fc -I' is an error
+
 	* 32903: Src/Modules/parameter.c: new empty (unset) elements in
 	the special parameter hash tables are special themselves, so that
 	adding elements via assignment syntax handles them correctly.
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");