mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 13:01:21 -03:00
Make if statements always return success at the end, matching other
shells. Fixes #1061.
This commit is contained in:
@@ -3773,6 +3773,10 @@ static int builtin_end(parser_t &parser, wchar_t **argv)
|
||||
}
|
||||
|
||||
case IF:
|
||||
/* Always return success (#1061) */
|
||||
proc_set_last_status(0);
|
||||
break;
|
||||
|
||||
case SUBST:
|
||||
case BEGIN:
|
||||
case SWITCH:
|
||||
|
||||
Reference in New Issue
Block a user