Open charles-dyfis-net opened 6 years ago
Per POSIX specifications re: use of each stream. See Do progress reports logging information belong on stderr or stdout? for discussion. (Note also that shell prompts -- in bash, POSIX sh, or others -- are conventionally on stderr).
This also disables color highlighting when not writing to a TTY. In the future, we should probably also prevent prompts from being written at all when stdout is redirected to a FIFO/filo/etc.
Per POSIX specifications re: use of each stream. See Do progress reports logging information belong on stderr or stdout? for discussion. (Note also that shell prompts -- in bash, POSIX sh, or others -- are conventionally on stderr).
This also disables color highlighting when not writing to a TTY. In the future, we should probably also prevent prompts from being written at all when stdout is redirected to a FIFO/filo/etc.