Discrepancy between BusyBox's (re-)implementation of xxd's -r (reverse) option and that of the stand-alone package.
Apologies if I've opened this issue in the incorrect Alpine sub-project; this seemed the most suitable of all the options.
Apologies, too, if this doesn't concern you - if I should (only) report the issue to the BusyBox project, let me know. I thought, however, that you might still be interested in the differences in your distribution.
The issue lies with the two xxd
implementations (specifically, the implementation of xxd -r
) available in the distribution - the BusyBox implementation, and that provided by the package xxd
. The BusyBox implementation seems to introduce extraneous bytes after decoding the first 64.
I've been able to reproduce the discrepancy in alpine:3.15
, and have itemised the steps I took in the attached Dockerfile.xxd. Please see the comments in that file for a discussion of what I did and what I expected to see, as well as the output from actually building the file, which I did via
docker build --no-cache -f Dockerfile.xxd .