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

cksum: -b shouldn't be a shortcut of --base64 #6278

Closed
cakebaker opened this issue Apr 27, 2024 · 3 comments
Closed

cksum: -b shouldn't be a shortcut of --base64 #6278

cakebaker opened this issue Apr 27, 2024 · 3 comments

Comments

@cakebaker
Copy link
Contributor

cakebaker commented Apr 27, 2024

Currently, we use -b as a shortcut for --base64. However, this is incorrect, the behavior of -b was changed in GNU 9.4 according to https://github.com/coreutils/coreutils/blob/master/NEWS:

'cksum -b' no longer prints base64-encoded checksums.  Rather that
  short option is reserved to better support emulation of the standalone
  checksum utilities with cksum.

For most algorithms, -b is a shortcut for --binary.

Thanks to @Rudxain for pointing out this issue in #6187 (comment)

@sylvestre
Copy link
Contributor

@Rudxain
Copy link

Rudxain commented Apr 27, 2024

Honestly, I didn't even expect to be right, haha. According to toybox md5sum --help: "Brief (hash only, no filename)". I was confused because I'm used to the Toybox implementation (because of Android), then I went to the Termux distribution of GNU coreutils and it said -b is "binary". I expected Toybox to have less features, not entirely different APIs! I was proven wrong

@cakebaker
Copy link
Contributor Author

Fixed by #6256

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

No branches or pull requests

3 participants