mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 01:43:47 +01:00
592dc4bbfa
# Description Closes https://github.com/nushell/nushell/issues/12257 This was down to the use of `eval_block` instead of `eval_block_with_early_return`. We may want to reconsider how we differentiate between this behavior. We currently need to check all the remaining commands that can invoke a closure block, if they properly handle `ShellError::Return` as a passing of a `Value` - **Add test for `return` in `filter` closure** - **Fix use of `return` in `filter` closure** # User-Facing Changes You can now return a value from a `filter` closure # Tests + Formatting Regression test |
||
---|---|---|
.. | ||
commands | ||
format_conversions | ||
main.rs |