【发布时间】:2017-09-17 04:06:14
【问题描述】:
以下 bash 脚本假设打开 2 个新的终端选项卡,然后执行相应的命令:
mate-terminal --tab -e "cd ~/ece344/root; sys161 -w kernel" --tab -e "cd ~/ece344/root; cs161-gdb kernel"
脚本确实打开了 2 个新选项卡,但是两个选项卡都显示以下错误:
There was an error creating the child process for this terminal
Failed to execute child process "cd" (No such file or directory)
附言。答案应该适用于mate-terminal。
【问题讨论】: