summaryrefslogtreecommitdiff
path: root/Src/zsh.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-01 15:07:25 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-01 15:07:25 +0000
commit041057687fc1d4a2f9912fcb86e04517686b3642 (patch)
tree0f0d181cebf9c50bf3e2d9d4a50643eafde9a140 /Src/zsh.h
parent88d07936a21c262ec5f86518cce3c85fd1951968 (diff)
downloadzsh-041057687fc1d4a2f9912fcb86e04517686b3642.tar.gz
zsh-041057687fc1d4a2f9912fcb86e04517686b3642.zip
27083: non-zero status on failures to find or execute file in "."
Diffstat (limited to 'Src/zsh.h')
-rw-r--r--Src/zsh.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Src/zsh.h b/Src/zsh.h
index 3854116c0..87b561085 100644
--- a/Src/zsh.h
+++ b/Src/zsh.h
@@ -1725,6 +1725,17 @@ struct nameddir {
#define PRINT_WHENCE_FUNCDEF (1<<9)
#define PRINT_WHENCE_WORD (1<<10)
+/* Return values from source() */
+
+enum source_return {
+ /* Source ran OK */
+ SOURCE_OK = 0,
+ /* Internal error sourcing file */
+ SOURCE_ERROR = 1,
+ /* File not found */
+ SOURCE_NOT_FOUND = 2
+};
+
/***********************************/
/* Definitions for history control */
/***********************************/