remove $nu.cwd (#4824)

This commit is contained in:
Darren Schroeder
2022-03-12 09:11:19 -06:00
committed by GitHub
parent 005301647a
commit ccc85a2979
3 changed files with 4 additions and 10 deletions

View File

@ -1125,12 +1125,6 @@ pub fn eval_variable(
}
}
// since the env var PWD doesn't exist on all platforms
// lets just get the current directory
let cwd = current_dir_str(engine_state, stack)?;
output_cols.push("cwd".into());
output_vals.push(Value::String { val: cwd, span });
output_cols.push("scope".into());
output_vals.push(create_scope(engine_state, stack, span)?);