nushell/tests/parsing/samples
Wind b0acc1d890
Avoid panic when pipe a variable to a custom command which have recursive call (#12491)
# Description
Fixes: #11351

And comment here is also fixed:
https://github.com/nushell/nushell/issues/11351#issuecomment-1996191537

The panic can happened if we pipe a variable to a custom command which
recursively called itself inside another block.

TBH, I think I figure out how it works to panic, but I'm not sure if
there is a potention issue if nushell don't mutate a block in such case.

# User-Facing Changes
Nan

# Tests + Formatting
Done

# After Submitting
Done

---------

Co-authored-by: Stefan Holderbach <sholderbach@users.noreply.github.com>
2024-04-23 06:10:35 +08:00
..
multiline_end_pipe_win.nu Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
multiline_end_pipe.nu Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
multiline_start_pipe_win.nu Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
multiline_start_pipe.nu Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
recursive_func_with_alias.nu Avoid panic when pipe a variable to a custom command which have recursive call (#12491) 2024-04-23 06:10:35 +08:00
single_line.nu Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
source_circular_1.nu Fix circular source causing Nushell to crash (#12262) 2024-04-19 09:38:08 +03:00
source_circular_2.nu Fix circular source causing Nushell to crash (#12262) 2024-04-19 09:38:08 +03:00
source_file_relative.nu Change parser cwd when running a file (#7134) 2022-11-15 00:05:27 +01:00