Files
fish-shell/doc_src
Johannes Altmanninger 0acbbfe2ca Document that a for-loop passes through any exit status
Unlike in other shells, for-loops do not set $status if
1. the loop count is zero, or if
2. the loop body consists of only commands like "set" that don't
   set $status.

POSIX for-loops always set an exit status (they set 0 if no loop
iterations). Following that would be awkward because it would add a
lot of complexity in combination with the 2 special cases above.

Document that "for" behaves the same as "set": it will pass through
existing $status, and also the last child's $status.

See the discussion in #8409
2021-11-18 15:06:12 +01:00
..
2020-10-12 20:25:35 +02:00
2021-10-29 17:14:53 +02:00
2021-11-05 16:50:19 -07:00
2021-05-03 13:12:11 +02:00