alexanderGugel / wsd

:facepunch: cURL for WebSocket Servers
MIT License
414 stars 29 forks source link

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

Open charles-dyfis-net opened 6 years ago

charles-dyfis-net commented 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.