mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
Fix broken ordering of args when parsing command with env vars. (#1841)
This commit is contained in:
@ -19,3 +19,13 @@ fn with_env_shorthand() {
|
||||
|
||||
assert_eq!(actual.out, "BARRRR");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shorthand_doesnt_reorder_arguments() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats",
|
||||
"FOO=BARRRR nu --testbin cococo first second"
|
||||
);
|
||||
|
||||
assert_eq!(actual.out, "firstsecond");
|
||||
}
|
||||
|
Reference in New Issue
Block a user