This commit is contained in:
Gregory Chamberlain 2020-10-03 09:16:07 +01:00
parent 561a040ef4
commit 4f0eff96f3

View file

@ -1036,9 +1036,6 @@ fi
## Check if output is to a terminal
This is an alternative to `tty` when you don't necessarily need to know
the terminal file name, just whether it is a terminal at all.
You can test whether file descriptor 1 (i.e. standard output) is open
on a terminal using `[ -t 1 ]`. This test fails if output is
redirected to a file (`>file`) or a pipe (`|cmd`).