我可以在 Bash 中的命令之间来回切换:
$ vim
CTRL-Z
# vim is in background now
# can resume it with:
$ fg
我试图用嵌套的 shell 做同样的事情,但是没有效果:
# launch nested Bash shell:
$ bash
CTRL-Z
# still in nested shell...
是否可以像示例一样将嵌套的shell置于后台并返回到父shell vim
?
如果不可能,那么原因是什么?
是的