Commit 526aa97
committed
Materialize the inherited env before the command modifier
A nil Env means inherit the parent, but a modifier that appends to it
would start from an empty slice and drop the parent environment
(PATH, SYSTEMROOT and such). Set it to os.Environ() first when nil.1 parent 6cf15b5 commit 526aa97
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
123 | 129 | | |
124 | 130 | | |
125 | 131 | | |
| |||
0 commit comments