about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-10-02 18:40:35 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-10-02 18:40:35 +0000
commit5ca1864f94d7f30118cff411bd9c0625a5d92811 (patch)
treedf445de0b754744fbb0b70693f489083c1b8f3d1 /Src/builtin.c
parent8e628ac624c4df24f4bc39166dbbc2c01c91d208 (diff)
downloadzsh-5ca1864f94d7f30118cff411bd9c0625a5d92811.tar.gz
zsh-5ca1864f94d7f30118cff411bd9c0625a5d92811.tar.xz
zsh-5ca1864f94d7f30118cff411bd9c0625a5d92811.zip
Change some zerr to zwarn for consistency.
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index efbbd20d9..afd140d3c 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -291,7 +291,7 @@ execbuiltin(LinkList args, Builtin bn)
 	    if (*arg) {
 		if(*arg == Meta)
 		    *++arg ^= 32;
-		zerr("bad option: -%c", NULL, *arg);
+		zwarn("bad option: -%c", NULL, *arg);
 		return 1;
 	    }
 	    arg = (char *) ugetnode(args);
@@ -3078,10 +3078,9 @@ err:
 	if(quiet) {
 	    zoptarg = metafy(optbuf, lenoptbuf, META_DUP);
 	} else {
-	    zerr(*p == '?' ? "bad option: -%c" :
-		"argument expected after -%c option", NULL, opch);
+	    zwarn(*p == '?' ? "bad option: -%c" :
+		  "argument expected after -%c option", NULL, opch);
 	    zoptarg=ztrdup("");
-	    errflag = 0;
 	}
 	return 0;
     }