`tty` command infers the current TTY from file descriptor 0. `$TTY` gives current TTY directly. The latter works even when file descriptor 0 is redirected. It's also over 1000 times faster.main
parent
92e6b37f73
commit
94f9e44f3f
Loading…
Reference in new issue