diff options
| author | Bryan C. Mills <bcmills@google.com> | 2022-04-19 15:54:50 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-04-21 14:26:18 +0000 |
| commit | aa242555412c29f8af3da7d92067577c6b089c3a (patch) | |
| tree | d250c8d451a627ec09f3834de81ccf4f8d69c0be /src/os/exec/exec_test.go | |
| parent | ab9d31da9e088a271e656120a3d99cd3b1103ab6 (diff) | |
| download | go-aa242555412c29f8af3da7d92067577c6b089c3a.tar.xz | |
os/exec: preserve original order of entries in dedupEnv
Once #50599 is implemented, the entries will be observable via the
Environ method. I find it confusing for later entries in the list to
jump arbitrarily far forward based on entries for the same key that no
longer exist.
This also fixes the deduplication logic for the degenerate Windows
keys observed in #49886, which were previously deduplicated as empty
keys.
(It does not do anything about the even-more-degenerate keys observed
in #52436.)
For #50599.
Change-Id: Ia7cd2200ec34ccc4b9d18631cb513194dc420c25
Reviewed-on: https://go-review.googlesource.com/c/go/+/401339
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
