summaryrefslogtreecommitdiffstats
path: root/testing/resources/stdout_stderr_repo/tty-check-entry
blob: 01a9d388313b5285f88dd4582eff8d3890d1df42 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bash
t() {
    if [ -t "$1" ]; then
        echo "$2: True"
    else
        echo "$2: False"
    fi
}
t 0 stdin
t 1 stdout
t 2 stderr