mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-30 14:24:35 +08:00
1680b741b2
A while loop now evaluates to the last executed command in the body, or zero if the loop body is empty. This matches POSIX semantics. Add a bunch of tricky tests. See #4982
13 lines
229 B
Plaintext
13 lines
229 B
Plaintext
Empty Loop in Function: 0
|
|
Runs Once: 0
|
|
Early Return: 2
|
|
|
|
####################
|
|
# Loops exit status handling
|
|
Condition Status: 36
|
|
Body Status: 0
|
|
Condition 2 Status: 13
|
|
Condition 2 Status: 5
|
|
Loop Exit Status: 11
|
|
Empty Loop Status: 0
|