another step in fixing issue #3985

This changes all of the builtins to behave like `string` to return
STATUS_INVALID_ARGS (121) if the args passed to the command don't make
sense. Also change several of the builtins to use the existing symbols
(e.g., STATUS_CMD_OK and STATUS_CMD_ERROR) rather than hardcoded "0"
and "1" for consistency and to make it easier to find such values in
the future.

Fixes #3985
This commit is contained in:
Kurtis Rader
2017-05-04 21:35:41 -07:00
parent be2b6bfdc9
commit e6e1805c5f
13 changed files with 163 additions and 169 deletions

View File

@@ -31,7 +31,7 @@ Verify that set passes through exit status, except when passed -n or -q or -e
6 0
7 1
8 0
9 1
9 121
10 0 A
11 1 B
Verify set -ql behavior