Subject: bug#17820: sha1sum bug: bad reporting on filenames with "\"

From: Pádraig Brady <[email-masked]>
Date: Fri, 20 Jun 2014 18:52:31 +0100

tag 17820 notabug
close 17820
stop

On 06/20/2014 11:48 AM, Morhold wrote:
> How to reproduce:
> 
> ~> touch "a\b"
> 
> ~> ls "a\b"
> a\b
> 
> ~> sha1sum "a\b"
> \da39a3ee5e6b4b0d3255bfef95601890afd80709  a\\b
> 
> ~> sha1sum --version
> sha1sum (GNU coreutils) 8.13

This is expected and is there to escape file names containing '\n'
We don't strictly need to also escape file names with '\' in them,
and we considered not doing that in this thread, but decided to leave as is:
  http://lists.gnu.org/archive/html/coreutils/2013-11/msg00017.html

thanks,
Pádraig.