Make if statements always return success at the end, matching other

shells. Fixes #1061.
This commit is contained in:
ridiculousfish
2014-02-07 17:56:40 -08:00
parent 09054a09fa
commit e632d39b1f
4 changed files with 16 additions and 0 deletions

View File

@@ -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: