Skip to content
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

base32/base64/basenc: implement and test proper flag parsing #6007

Merged
merged 3 commits into from
Feb 27, 2024

Conversation

BenWiederhake
Copy link
Collaborator

This PR fixes several issues:

  • Basic functionality of basenc was not tested – it already works, yes, but let's make sure it doesn't regress.
  • basenc should not decide according to some arbitrary built-in priority list (ENCODINGS), but rather let the last encoding on the command-line override any earlier ones. (This fixes a GNU behavior bug.)
  • Permit repeated flags on the command-line; i.e. the flags -d, -i, and -w. (This fixes a GNU behavior bug.)

This fixes #5998 for the special case of base32, base64, and basenc.

@cakebaker cakebaker merged commit ae7d03c into uutils:main Feb 27, 2024
62 checks passed
@cakebaker
Copy link
Contributor

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow repeated flags much more often
2 participants