mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 09:55:42 +02:00
Merge stack before printing (#9304)
Could you @fdncred try it? close?: #9264 --------- Signed-off-by: Maxim Zhiburt <zhiburt@gmail.com> Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
This commit is contained in:
@ -167,9 +167,13 @@ pub fn check_example_evaluates_to_expected_output(
|
||||
stack.add_env_var("PWD".to_string(), Value::test_string(cwd.to_string_lossy()));
|
||||
|
||||
engine_state
|
||||
.merge_env(&mut stack, cwd)
|
||||
.merge_env(&mut stack)
|
||||
.expect("Error merging environment");
|
||||
|
||||
engine_state
|
||||
.set_current_working_dir(cwd)
|
||||
.expect("Error setting CWD");
|
||||
|
||||
let empty_input = PipelineData::empty();
|
||||
let result = eval(example.example, empty_input, cwd, engine_state);
|
||||
|
||||
|
Reference in New Issue
Block a user