library: exec.Cmd.environ
This commit is contained in:
@@ -29,6 +29,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/goplus/llgo/internal/lib/internal/syscall/execenv"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Error is returned by LookPath when it fails to classify a file as an
|
// Error is returned by LookPath when it fails to classify a file as an
|
||||||
@@ -1089,7 +1091,6 @@ func minInt(a, b int) int {
|
|||||||
// would be run as it is currently configured. If an error occurs in computing
|
// would be run as it is currently configured. If an error occurs in computing
|
||||||
// the environment, it is returned alongside the best-effort copy.
|
// the environment, it is returned alongside the best-effort copy.
|
||||||
func (c *Cmd) environ() ([]string, error) {
|
func (c *Cmd) environ() ([]string, error) {
|
||||||
/* TODO(xsw):
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
env := c.Env
|
env := c.Env
|
||||||
@@ -1128,8 +1129,6 @@ func (c *Cmd) environ() ([]string, error) {
|
|||||||
err = dedupErr
|
err = dedupErr
|
||||||
}
|
}
|
||||||
return addCriticalEnv(env), err
|
return addCriticalEnv(env), err
|
||||||
*/
|
|
||||||
panic("todo: exec.Cmd.environ")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Environ returns a copy of the environment in which the command would be run
|
// Environ returns a copy of the environment in which the command would be run
|
||||||
|
|||||||
Reference in New Issue
Block a user