1
据run bash command in new shell and stay in new shell after this command executes,我怎么可以运行命令:运行shell命令去
bash --rcfile <(echo "export PS1='> ' && ls")
golang内?我尝试了很多exec.Command()
的组合,但他们没有工作。例如:
exec.Command("bash", "--rcfile", `<("echo 'ls'")`)
我也看到了这个os, os/exec: using redirection symbol '<' '>' failed,但我想也许我的情况更复杂一些。