-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
stty: Combining all open PR's to show stty GNU test passing #9427
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
Conversation
|
I'm seeing |
|
GNU testsuite comparison: |
|
Those two commits should cover the two tests: |
|
GNU testsuite comparison: |
|
This last commit should cover the use case for the bad-speed test, would add an additional 5 passing GNU tests if this we can get a version of this into the code-base 🎉 |
|
GNU testsuite comparison: |
|
|
||
| /// GNU uses an unsigned 32-bit integer for row/col sizes, but then wraps around 16 bits | ||
| /// this function returns Some(n), where n is a u16 row/col size, or None if the string arg cannot be parsed as a u32 | ||
| fn parse_rows_cols(arg: &str) -> Option<u16> { |
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.
Isn't this parse logic for most integer input that is supported?
GNU does it at least for line too and for any other control char.
In general the parser seems to be worth being moved to an utility module that is share through the other tools given that in GNU the same logic (e.g. xnumtoumax) is at least used by:
nprocfoldfmtheadlscksumsplitstty
Creating this PR to showcase all of the open stty PR's to show that when combined that the STTY tests are able to run on the Github action runners and that two of the GNU stty tests now pass.