bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66519: b2sum, md5sum sha*sum etc broken on filenames including backs


From: Glenn Golden
Subject: bug#66519: b2sum, md5sum sha*sum etc broken on filenames including backslash
Date: Tue, 17 Oct 2023 07:25:49 -0600
User-agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85


On Tue, Oct 17, 2023, at 02:22, Simon Richter M. Sc. wrote:
>
> No that doesn't make sense, this can't be intended behaviour, even if 
> you escape the backslash there should be no backslash in the beginning 
> of the checksum!
>

It is intended and documented as such. From coreutils.info (9.3):

   "Without ‘--zero’, if FILE contains a backslash, newline, or carriage
    return, the line is started with a backslash, and each problematic
    character in the file name is escaped with a backslash, making the
    output unambiguous even in the presence of arbitrary file names."

You can argue that it ought to have been done differently, but it is the 
documented behavior.

Glenn Golden






reply via email to

[Prev in Thread] Current Thread [Next in Thread]