mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 06:40:16 +02:00
Load env pwd (#7963)
# Description Fixes #7940 avoid `load-env` to change PWD # User-Facing Changes `{"PWD": whatever} | load-env` now fails
This commit is contained in:
committed by
GitHub
parent
ec4370069a
commit
aef88aa03e
@@ -99,6 +99,13 @@ fn load_env_file_pwd_env_var_fails() {
|
||||
assert!(actual.err.contains("automatic_env_var_set_manually"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn load_env_pwd_env_var_fails() {
|
||||
let actual = nu!(cwd: ".", r#"load-env { PWD : 'foo' }"#);
|
||||
|
||||
assert!(actual.err.contains("automatic_env_var_set_manually"));
|
||||
}
|
||||
|
||||
// FIXME: for some reason Nu is attempting to execute foo in `let-env FOO = foo`
|
||||
#[ignore]
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user