Description
Terminal-dependent commands can be given a pseudo-terminal even when their output is redirected or captured by another process.
This is useful for testing, automation, and command wrappers. Programs may change behavior when they detect a TTY, so compare results with normal execution.