nushell/src
Amirhossein Akhlaghpour 00469de93e
Limit recursion to avoid stack overflow (#7657)
Add recursion limit to `def` and `block`.
Summary of this PR , it will detect if `def` call itself or not .
Then execute by using `stack` which I think best choice to use with this
design and core as it is available in all crates and mutable and
calculate the recursion limit on calling `def`.
Set 50 as recursion limit on `Config`.
Add some tests too .

Fixes #5899

Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-01-04 18:38:50 -08:00
..
tests Limit recursion to avoid stack overflow (#7657) 2023-01-04 18:38:50 -08:00
config_files.rs chore: make the config setup messages consistent (#7560) 2022-12-21 23:16:08 +01:00
logger.rs Fix color settings for logger (#6285) 2022-08-10 06:52:11 -05:00
main.rs Reorder flags in nu --help (#7672) 2023-01-03 16:18:37 -08:00
README.md Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
test_bins.rs Further cleanup of Span::test_data usage + span fixes (#7595) 2022-12-24 07:41:57 -06:00
tests.rs Primitives now use color closures when printed on the command line (#7650) 2023-01-03 23:59:10 -08:00

Nushell REPL

This directory contains the main Nushell REPL (read eval print loop) as part of the CLI portion of Nushell, which creates the nu binary itself.

Current versions of the nu binary will use the Nu argument parsing logic to parse the commandline arguments passed to nu, leaving the logic here to be a thin layer around what the core libraries.