Conversation
|
GNU testsuite comparison: |
|
Did you see that |
|
No, I didn't, will take a look now |
|
GNU testsuite comparison: |
tertsdiepraam
left a comment
There was a problem hiding this comment.
Nice! Just one suggestion
src/uu/stdbuf/src/stdbuf.rs
Outdated
| x => parse_size_u64(x).map_or_else( | ||
| |e| crash!(125, "invalid mode {}", e), | ||
| |e| { | ||
| set_exit_code(125); |
There was a problem hiding this comment.
I think this lines should not be necessary. The exit code should be added to the error here:
coreutils/src/uu/stdbuf/src/stdbuf.rs
Line 151 in 26df944
It'd be great if you could also verify that this is actually the case by writing a test for it.
There was a problem hiding this comment.
Ah, you're right, I've taken that line out. However, the test already asserts that the error code is 125: https://github.com/cswn/coreutils/blob/26df9445fb70152abfd523c0bdb75def6c7d5475/tests/by-util/test_stdbuf.rs#L67C9-L67C9
|
GNU testsuite comparison: |
|
Thanks! |
This is related to issue: #5487
Removes the
crash!macro fromstdbuf.