>我要完成一个非常简单的任务。 用屏幕启动我的外壳。在我的 .profile 文件中。我有这个
if [ -f /bin/bash ];
then
echo "Switch to bash."
exec bash
切换到 bash 。
但是如果我只在我的 .bashrc 中包含"屏幕",我会进入屏幕提示的无限循环,因为 bash 以递归方式运行屏幕。
如果我包括。"exec bash -c screen"终端永远不会启动?
在运行屏幕时,请考虑不使用配置文件脚本:
exec screen bash --noprofile