diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-02 13:46:36 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-02 13:46:36 +0000 |
commit | 5c5a388ed7ec05d32c73991bc2fa385bf1090ab8 (patch) | |
tree | d959af7afb2d343dc6444bfdc5bcbe2dcc7bb742 /Src | |
parent | 7a1f580c036741585368086163ec24607c72c3a8 (diff) | |
download | zsh-5c5a388ed7ec05d32c73991bc2fa385bf1090ab8.tar.gz zsh-5c5a388ed7ec05d32c73991bc2fa385bf1090ab8.tar.xz zsh-5c5a388ed7ec05d32c73991bc2fa385bf1090ab8.zip |
27087: change return codes from failed "."
Diffstat (limited to 'Src')
-rw-r--r-- | Src/builtin.c | 2 | ||||
-rw-r--r-- | Src/zsh.h | 6 |
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 }; /***********************************/ |