Remove SHLVL update platform limit

This commit is contained in:
Rikuki IX 2024-11-21 20:49:01 +08:00
parent 4874a02279
commit 06b5dd8f89

View File

@ -281,8 +281,6 @@ fn main() -> Result<()> {
);
// Add SHLVL if interactive
#[cfg(not(windows))]
{
if engine_state.is_interactive {
let mut shlvl = engine_state
.get_env_var("SHLVL")
@ -291,7 +289,6 @@ fn main() -> Result<()> {
shlvl += 1;
engine_state.add_env_var("SHLVL".to_string(), Value::int(shlvl, Span::unknown()));
}
}
if parsed_nu_cli_args.no_std_lib.is_none() {
load_standard_library(&mut engine_state)?;