mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 02:24:58 +02:00
Remove std::env::set_current_dir()
call from EngineState::merge_env()
(#12922)
As discussed in https://github.com/nushell/nushell/pull/12749, we no longer need to call `std::env::set_current_dir()` to sync `$env.PWD` with the actual working directory. This PR removes the call from `EngineState::merge_env()`.
This commit is contained in:
@ -98,8 +98,7 @@ use std pwd
|
||||
|
||||
eval_block::<WithoutDebug>(engine_state, &mut stack, &block, pipeline_data)?;
|
||||
|
||||
let cwd = engine_state.cwd(Some(&stack))?;
|
||||
engine_state.merge_env(&mut stack, cwd)?;
|
||||
engine_state.merge_env(&mut stack)?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Reference in New Issue
Block a user