2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-22 17:55:11 +00:00
Commit graph

2 commits

Author SHA1 Message Date
ridiculousfish
1680b741b2 Make while loops evaluate to the last executed command status
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 
2019-01-20 16:37:20 -08:00
Mahmoud Al-Qudsi
03cdf89bfd Add tests for $status after while in various scenarios
Includes a regression test for  and asserts the behavior defined in
\#4982.
2019-01-13 18:58:48 -06:00