我写了一个在Go中使用ForkExec的程序。command:="/bin/su-c'/bin/ls-lh/>/tmp/sC0X3kASz7'joe"pid,err:=os.ForkExec(command,[]string{},os.Environ(),"",[]*os.File{nil,cmd.Stdout,cmd.Stderr})如果您在shell上执行该命令,并执行cat/tmp/sC0X3kASz7,您将看到列出的文件。然而,上面的ForkExec只创建了文件,并没有在其中写入任何内容。知道为什么会这样吗?go是根。edit:command:="/bin/ls-lh/>/tm