mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user