|
|
|
|
|
by bradfitz
3294 days ago
|
|
I would be super interested if the os/exec change bites you. I've never seen any definition of how programs should handle duplicate environment variables, and there doesn't seem to be consistency in the wild either. We went with the bash behavior (latest one wins), which also means all the code previously using: cmd.Env = append(os.Environ(), "KEY=newvalue") ... now actually works reliably. Previously, if KEY=oldvalue was already defined, what you got depended on your luck with the child program. Either old, new, or random. File a bug if you see a regression. |
|