about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-07-24 08:33:13 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2014-07-24 08:33:13 -0700
commit77119afe19a781251e77a369db1dc9c8556055a0 (patch)
treee018cad120f591a3dd78c2174135051786f18cb0 /Src/builtin.c
parentf6429189a8de189f5bc388b9602b293fdd2fc286 (diff)
downloadzsh-77119afe19a781251e77a369db1dc9c8556055a0.tar.gz
zsh-77119afe19a781251e77a369db1dc9c8556055a0.tar.xz
zsh-77119afe19a781251e77a369db1dc9c8556055a0.zip
unposted (see 32892): 'fc -I' is an error
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c4
1 files changed, 4 insertions, 0 deletions
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");