mirror of
https://github.com/nushell/nushell.git
synced 2025-08-17 06:41:18 +02:00
Do not pass non-string env vars to externals (#4748)
* Do not pass non-string env vars to externals Also misc cleanup * Add note to default config * Add a test * Ensure PATH/Path conversion list <-> string
This commit is contained in:
@ -14,3 +14,11 @@ fn shorthand_env_2() -> TestResult {
|
||||
fn shorthand_env_3() -> TestResult {
|
||||
run_test(r#"FOO=BAZ BAR=MOO $env.FOO"#, "BAZ")
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn convert_non_string_env_var_to_nothing() -> TestResult {
|
||||
run_test(
|
||||
r#"let-env FOO = true; env | where name == FOO | get raw.0 | describe"#,
|
||||
"nothing",
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user