cksum: Improve the GNU compat#6256
cksum: Improve the GNU compat#6256BenWiederhake merged 6 commits intouutils:mainfrom sylvestre:hash-error1
Conversation
|
GNU testsuite comparison: |
nice :) |
|
Did you see that |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
BenWiederhake
left a comment
There was a problem hiding this comment.
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
--tagand--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 |
|
i am not worried but sure :) |
BenWiederhake
left a comment
There was a problem hiding this comment.
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: |
|
GNU testsuite comparison: |
BenWiederhake
left a comment
There was a problem hiding this comment.
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.
|
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 :) |
BenWiederhake
left a comment
There was a problem hiding this comment.
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: |
Should make tests/cksum/cksum-a.sh pass