GNU bug report logs - #77934
bug: md5sum: Escaped backslashes in filename got in stdout

Previous Next

Package: coreutils;

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.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: William Johnson <oi_mate <at> mail.ru>
To: bug-coreutils <at> gnu.org
Subject: bug: md5sum: Escaped backslashes in filename got in stdout
Date: Sun, 20 Apr 2025 02:44:15 +0300
[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)]

This bug report was last modified 33 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.