Debian Codegraph @

tests/fixtures/nohup/is_a_tty.sh

raw
1 #!/bin/bash
2
3 [ -t 0 ] && echo "stdin is a tty" || echo "stdin is not a tty"
4 [ -t 1 ] && echo "stdout is a tty" || echo "stdout is not a tty"
5 [ -t 2 ] && echo "stderr is a tty" || echo "stderr is not a tty"
6 :