mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
Revert "Use syscall.Unsetenv instead of os.Unsetenv"
This reverts commit c1150817c3
.
This commit is contained in:
parent
c1150817c3
commit
a953604bb9
|
@ -4,7 +4,7 @@ package eval
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"syscall"
|
||||
"os"
|
||||
|
||||
"github.com/elves/elvish/parse"
|
||||
)
|
||||
|
@ -261,7 +261,7 @@ func compileDel(cp *Compiler, fn *parse.FormNode) exitusOp {
|
|||
}
|
||||
for _, name := range envNames {
|
||||
// TODO(xiaq): Signify possible error
|
||||
syscall.Unsetenv(name)
|
||||
os.Unsetenv(name)
|
||||
}
|
||||
return success
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user