在shell中我可以这样做:
if test -t 0 ; then echo stdin is a tty exit 0 fi
我怎么能批量做到这一点?
stdin window batch-file
batch-file ×1
stdin ×1
window ×1