阅读背景:

如何识别脚本是否在tty上运行?

来源:互联网 

I would like my script to act differently in an interactive shell session and when running with redirected stdout (for example when piped to some other command).I would like my script to act differently in an




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: