On 27/04/2025 10:47, root wrote:
Package: coreutils
Version: 9.1-1
Severity: normal
Dear Maintainer,
* What led up to the situation?
Calculating checksum on files on an ArchLinux filesystem from Debian
* What exactly did you do (or not do) that was effective (or
ineffective)?
sha256sum '/usr/lib/systemd/system/system-systemd\x2dcryptsetup.slice'
* What was the outcome of this action?
\68dc6e85631e077f2bc751352459823844911b93b7ba2afd95d96c893222bb50
/usr/lib/systemd/system/system-systemd\\x2dcryptsetup.slice
Notice the first \
That's expected behavior, and distinguishes literal vs escaped back slashes.
If you would like simpler (and more robust) programmatic control of the output,
consider using the --zero option, which does not need this escaping mechanism.
Padraig