4
我有一个shell脚本运行在我的个人终端和CI环境中。在CI环境中,python要求确定shell高度/宽度返回滑稽值。我的shell脚本如何确定它是否在真正的shell中?
我想做些什么来的效果:
if (I am running in shell context)
determine height/width of terminal
else
don't
fi
我怎样才能表达这种状况,在bash脚本?