about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-05-15 09:39:55 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-05-15 09:39:55 +0000
commit09c5818b393a14d693e5b7424b23e0a155bcaa60 (patch)
tree6f41349b550108e06522fe506545f186e35595d9 /Src/builtin.c
parent4e309d2cddb7b8e1ee7c57320ba4a87162e943bf (diff)
downloadzsh-09c5818b393a14d693e5b7424b23e0a155bcaa60.tar.gz
zsh-09c5818b393a14d693e5b7424b23e0a155bcaa60.tar.xz
zsh-09c5818b393a14d693e5b7424b23e0a155bcaa60.zip
18530: print option states with `set -o' or `set +o'
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 02f113a31..96ed1e61b 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -562,9 +562,9 @@ bin_set(char *nam, char **args, Options ops, int func)
 		if (!*++*args)
 		    args++;
 		if (!*args) {
-		    zwarnnam(nam, "string expected after -o", NULL, 0);
+		    printoptionstates(hadplus);
 		    inittyptab();
-		    return 1;
+		    return 0;
 		}
 		if(!(optno = optlookup(*args)))
 		    zwarnnam(nam, "no such option: %s", *args, 0);