mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-08 16:21:16 -03:00
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 #4982
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
|
||||
####################
|
||||
# Loops exit status handling
|
||||
|
||||
Reference in New Issue
Block a user