I know for bash and zsh, one can use e.g. [ -t 1 ] to determine if STDIN is an interactive tty session.
[ -t 1 ]
However, there doesn\'t seem to be a way to test