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

Make ewarn and eerror log to stderr #4

Closed
wants to merge 2 commits into from
Closed

Conversation

floppym
Copy link
Contributor

@floppym floppym commented May 2, 2015

Also fix the handling of EINFO_QUIET and EERROR_QUIET.

This should resolve bug 548158.

Also fix the handling of EINFO_QUIET and EERROR_QUIET.

This should resolve bug 548158.
else
if ! yesno "${RC_ENDCOL}" && [ "${LAST_E_CMD}" = "ebegin" ]; then
printf "\n"
printf "\n" >&2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty nit-picky but I wonder if this newline should stay on stdout since its purpose is to complete the message that ebegin wrote. That would adding && ! yesno "${EINFO_QUIET}" to the condition.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, libeinfo seems to do something entirely different, so I have no basis for how this should work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After reading libeinfo a bit more, it looks like this newline would be written to stderr. I have confirmed this using strace.

So my code matches the behavior of the existing openrc code.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, works for me. Simpler that way :)

@floppym floppym closed this in 5b7c6d2 May 12, 2015
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.

None yet

2 participants