-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
brew update prints to stdout #10609
Comments
This is intentional behaviour for non-TTYs so that e.g. |
I don't see how it's intentional that non-errors are sent to standard error. If this is intentional, was the previous behavior – the behavior that has existed for years where regular output was sent to stdout – "unintentional"? Just trying to figure out how this sudden regression can be considered intentional. |
It was an intentional change because we made a pull request to change this behaviour.
Yes: the side-effect of having these messages output to a TTY was a shortcoming given our typical |
This seems like a misuse of stderr. I get why some might consider it easier to send to stderr but its clearly not the right place to send the message. |
We do this already in several places e.g. printing the tapping output. |
@MikeMcQuaid what is your recommendation for dealing with the issue @kbadk reported? Redirect all output and ignore errors? The new addition to the update-report is also being added to stderr. |
@dkav We do not consider it an issue. My recommendation is not not to do anything. |
brew config
outputbrew doctor
outputbrew doctor
above contains no "Warning" lines.What were you trying to do (and why)?
Run
brew update
in a cronjob (no tty).What happened (include all command output)?
The following line
was sent to stderr (might be related to https://github.com/Homebrew/brew/pull/10537/files) instead of stdout, although it is clearly not an error.
What did you expect to happen?
The same as what happened until a few days ago: Regular non-error output is sent to stdout, so cron doesn't send me mails.
Step-by-step reproduction instructions (by running
brew
commands)/usr/local/bin/brew update >> /some/path/brew-log
in a cronjob.The text was updated successfully, but these errors were encountered: