小编Zip*_*pon的帖子

如何测试STDIN是批量终端?

在shell中我可以这样做:

if test -t 0  ; then
  echo stdin is a tty
  exit 0
fi
Run Code Online (Sandbox Code Playgroud)

我怎么能批量做到这一点?

stdin window batch-file

4
推荐指数
1
解决办法
287
查看次数

标签 统计

batch-file ×1

stdin ×1

window ×1