summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-04 14:08:56 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-04 14:08:56 +0000
commit1db256fc0fa5ef0497d6287df9d05d0806604566 (patch)
tree83be0a5d11637a8f134ef63de21b21350ab35869 /Src/builtin.c
parentb73476952312aa4e91432e6574665e953fef5c76 (diff)
downloadzsh-1db256fc0fa5ef0497d6287df9d05d0806604566.tar.gz
zsh-1db256fc0fa5ef0497d6287df9d05d0806604566.tar.xz
zsh-1db256fc0fa5ef0497d6287df9d05d0806604566.zip
better error handling for zwc files
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 73d89aa4f..37a8af495 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -2118,12 +2118,9 @@ bin_functions(char *name, char **argv, char *ops, int func)
 
     /* Take the arguments literally -- do not glob */
     for (; *argv; argv++) {
-	if (ops['w']) {
-	    if (dump_autoload(*argv, on, ops, func)) {
-		zwarnnam(name, "invalid wordcode file: %s", *argv, 0);
-		returnval = 1;
-	    }
-	} else if ((shf = (Shfunc) shfunctab->getnode(shfunctab, *argv))) {
+	if (ops['w'])
+	    returnval = dump_autoload(name, *argv, on, ops, func);
+	else if ((shf = (Shfunc) shfunctab->getnode(shfunctab, *argv))) {
 	    /* if any flag was given */
 	    if (on|off) {
 		/* turn on/off the given flags */