about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/builtin.c2
-rw-r--r--Src/zsh.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 1f41b1e87..62c6e3c7d 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -4773,7 +4773,7 @@ bin_dot(char *name, char **argv, UNUSED(Options ops), UNUSED(int func))
     zsfree(arg0);
     if (old0)
 	argzero = old0;
-    return ret == SOURCE_OK ? lastval : 127 + ret;
+    return ret == SOURCE_OK ? lastval : 128 - ret;
 }
 
 /*
diff --git a/Src/zsh.h b/Src/zsh.h
index 87b561085..bd872a55a 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1730,10 +1730,10 @@ struct nameddir {
 enum source_return {
     /* Source ran OK */
     SOURCE_OK = 0,
-    /* Internal error sourcing file */
-    SOURCE_ERROR = 1,
     /* File not found */
-    SOURCE_NOT_FOUND = 2
+    SOURCE_NOT_FOUND = 1,
+    /* Internal error sourcing file */
+    SOURCE_ERROR = 2
 };
 
 /***********************************/