-
-
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
cksum: Improve the GNU compat #6256
Conversation
GNU testsuite comparison:
|
nice :) |
Did you see that |
GNU testsuite comparison:
|
4a468ac
to
3650dba
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.
This fixes some GNU tests, yes, but also has two major downsides currently:
- The code would now falsely claim that files verify with their checksum, without ever actually checking the checksum (VERY bad!)
- There are some questionable conditions around
--tag
and--untagged
Details below.
I am planning to implement it next :) |
../gnu/tests/cksum/cksum-c.sh will be next :) |
I'm really worried about the |
f32e625
to
cdf959d
Compare
i am not worried but sure :) |
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.
Still the check
thing, and another iteration on the tag/untagged/binary thing.
I will fix this in a different PR |
GNU testsuite comparison:
|
GNU testsuite comparison:
|
b57203c
to
d4b9bc0
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.
Oh boy, argument parsing sure is finicky.
Migrating away from clap and instead using uutil-args would make this trivially easy, because this sequential "one argument after another" logic seems to be what all GNU utils do under the hood.
39d1713
to
b4e2d59
Compare
GNU testsuite comparison:
|
I will implement check next. I started but I don't want extend this PR more. And yes, it is doing hand parsing of the argument but clap doesn't work for this (see the comments) and with our move to the different library, I don't see the point of spending more time on this :) |
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.
You know what, I think I give up on the binary/text/tag/untagged situation. It's good enough for now, I'll just create an issue once this PR lands, and hope that it doesn't get forgotten to time (like the other ~290 open issues).
Can I ask you to fix the typo, though?
GNU testsuite comparison:
|
1 similar comment
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.
Should make tests/cksum/cksum-a.sh pass