Open rittneje opened 2 years ago
This is a busybox bug/feature. I agree that it is annoying and would be nice to fix. Could you please report it here: https://bugs.busybox.net/
I can try give it a shot when I get some time for it. I guess it shouldn't be too hard to fix.
For some reason, the Alpine version of sha256sum requires two spaces between the hash and file path. No other version of sha256sum has this requirement. For instance:
This was reported in https://github.com/gliderlabs/docker-alpine/issues/174 but was never fixed.
At minimum,
sha256sum
should output a proper error message. It does at least complain if you pass-w
, but this flag should not be required, and the error message is too vague anyway.Even though Alpine may be technically correct in failing, it is definitely a poor experience for newcomers, especially because other versions of
sha256sum
are more forgiving. This only discourages people from usingsha256sum
(because it's "broken"), or from using Alpine entirely.