-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
libstdbuf: remove crash macro #5565
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is however a bit of a tricky crate. Since this crate is injected into processes, I think it might actually best if this doesn't rely on uucore
. In this case I think we should just check what error messages GNU gives and just use eprintln!
and std::process::exit
to match that.
@sylvestre do you agree?
Edit: Actually, I think we should probably only print a warning if we fail to parse the value.
Added some changes, including no longer relying on |
1761a7d
to
0db8fbb
Compare
GNU testsuite comparison:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Just one small question
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Let's also remove the uucore
dependency in src/uu/stdbuf/src/libstdbuf/Cargo.toml
!
Ah right, thanks :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Thanks!
This PR is related to issue: #5487
Removes the
crash!
macro from libstdbuf