具有非常相似的命令调用cmddirect:=exec.command("theexecutable")cmdshell:=exec.command(os.getenv("shell"),"-c","theexecutable")两者具有相同的环境设置envwithpath:=append(os.environ(),fmt.sprintf("path=/real/existing/path/to/theexecutable/holder:%s",os.getenv("pat
2024-02-09评论:访问次数:369