-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Expected
If I prepend PATH with b and then prepend it with a that the outcome will be PATH=b:a:$PATH.
Actual
Only the last modification is preserved, it ends up being PATH=a:$PATH.
Repro
$ cargo new env_delimiter_apply
$ cd env_delimiter_apply
$ cargo add libcnb
$ cargo add pretty_assertions
Stick this code in your main.rs and run tests:
$ cargo test
Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s
Running unittests src/main.rs (target/debug/deps/env_delimiter_apply-487764a010d26946)
running 2 tests
test test::test_simple_path ... ok
test test::test_double_path ... FAILED
failures:
---- test::test_double_path stdout ----
thread 'test::test_double_path' panicked at src/main.rs:46:9:
assertion failed: `(left == right)`
Diff < left / right > :
<PATH=b:a
>PATH=a
Metadata
Metadata
Assignees
Labels
No labels