// License: GPLv3 Copyright: 2023, Kovid Goyal, package at import ( "fmt" "os" ) var _ = fmt.Print func copy_local_env(copy_env bool) []string { if copy_env { return os.Environ() } return nil } func copy_local_cwd(copy_cwd string) string { if copy_cwd == "current" { if c, e := os.Getwd(); e == nil { copy_cwd = c } } return copy_cwd }