Testing whether stdin is a file vs. a pipe vs. a tty

前端 未结 0 1248
醉梦人生
醉梦人生 2020-12-18 05:27

I know for bash and zsh, one can use e.g. [ -t 1 ] to determine if STDIN is an interactive tty session.

However, there doesn\'t seem to be a way to test

相关标签:
回答
  • 消灭零回复
提交回复
热议问题