Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only output belongs on stdout; status and prompts belong on stderr #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

charles-dyfis-net
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant