GNU bug report logs -
#77934
bug: md5sum: Escaped backslashes in filename got in stdout
Previous Next
Reported by: William Johnson <oi_mate <at> mail.ru>
Date: Sun, 20 Apr 2025 06:34:01 UTC
Severity: normal
Tags: notabug
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77934 in the body.
You can then email your comments to 77934 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#77934
; Package
coreutils
.
(Sun, 20 Apr 2025 06:34:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
William Johnson <oi_mate <at> mail.ru>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sun, 20 Apr 2025 06:34:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello. I would like to report a bug for md5sum coreutil.
If filename has ‘\t’ in filename, stdout for md5sum result will start with backslash symbol.
* My version of md5sum util:
md5sum --version
md5sum (GNU coreutils) 8.32
* Set of commands to reproduce:
$ touch hello
$ touch hello\t\\t\\\t\\\\t
$ md5sum ./*
d41d8cd98f00b204e9800998ecf8427e ./hello
\d41d8cd98f00b204e9800998ecf8427e ./hellot\\t\\t\\\\t
* Expected no backshash symbol in stdout line 2. This is not a big deal as files with backslashes in names are rare, but if someone process md5sums with regexp this case might ruin their work. Theoretically.
Thank you.
--
William Johnson
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#77934
; Package
coreutils
.
(Sun, 20 Apr 2025 12:02:02 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
On Sat, Apr 19, 2025, at 17:44, William Johnson via GNU coreutils Bug Reports wrote:
>
> Hello. I would like to report a bug for md5sum coreutil.
> If filename has ‘\t’ in filename, stdout for md5sum result will start
> with backslash symbol.
>
> [ ... ]
>
This is documented behavior since coreutils 8.25 for filenames containing backslashes:
https://www.gnu.org/software/coreutils/manual/html_node/cksum-output-modes.html
- Glenn
Added tag(s) notabug.
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Apr 2025 16:05:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
77934 <at> debbugs.gnu.org and William Johnson <oi_mate <at> mail.ru>
Request was from
Paul Eggert <eggert <at> cs.ucla.edu>
to
control <at> debbugs.gnu.org
.
(Sun, 20 Apr 2025 16:05:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#77934
; Package
coreutils
.
(Sun, 20 Apr 2025 16:09:02 GMT)
Full text and
rfc822 format available.
Message #15 received at 77934 <at> debbugs.gnu.org (full text, mbox):
tag 77934 notabug
close 77934
stop
On 20/04/2025 00:44, William Johnson via GNU coreutils Bug Reports wrote:
> Hello. I would like to report a bug for md5sum coreutil.
> If filename has ‘\t’ in filename, stdout for md5sum result will start with backslash symbol.
>
> * My version of md5sum util:
> md5sum --version
> md5sum (GNU coreutils) 8.32
>
> * Set of commands to reproduce:
> $ touch hello
> $ touch hello\t\\t\\\t\\\\t
> $ md5sum ./*
> d41d8cd98f00b204e9800998ecf8427e ./hello
> \d41d8cd98f00b204e9800998ecf8427e ./hellot\\t\\t\\\\t
>
> * Expected no backshash symbol in stdout line 2. This is not a big deal as files with backslashes in names are rare, but if someone process md5sums with regexp this case might ruin their work. Theoretically.
> Thank you.
That's expected and documented behavior.
Consider using --zero for programmatic use of these utilities,
in which case the escaping is not used (required).
cheers,
Pádraig
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 19 May 2025 11:24:09 GMT)
Full text and
rfc822 format available.
This bug report was last modified 17 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.