[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: md5sum: Output format error on files with backslash in their names
From: |
Steven Augart |
Subject: |
Re: md5sum: Output format error on files with backslash in their names |
Date: |
Tue, 7 Oct 2003 17:25:44 -0400 |
Dear W. Limmer,
I can reproduce the output you sent.
I examined the md5sum documentation, and it is indeed incomplete. "For
each file, `md5sum' outputs the MD5 checksum, a flag indicating binary or
text input file, and the filename. "
It seems clear that this whole backslashing thing is done in order to
handle the case of a filename that contains a newline (since the format
uses newlines as terminators), and once that's in place, to handle the
case of a filename that contains the string "\n". (I looked in the source
code, src/md5sum.c, to check.)
maintainer(s): Does it make sense for one of us to add documentation on
the file format output by md5sum to the information on the texinfo page?
--Steve
"W. L." <address@hidden>
Sent by: address@hidden
10/07/2003 04:26 PM
To: address@hidden
cc:
Subject: md5sum: Output format error on files with
backslash in their names
Dear Team,
using md5sum on files with a backslash in their filenames
gives an error in the output file format: A waste backslash
is output at the beginning of the line.
Also the backslashes themselves are quoted: Bug or feature?
Please check following example:
> md5sum ../div/Üble\ Filenamen/*
\45bb8963e53c01e2fd6f926bc15f0553 ../div/Üble Filenamen/with\nLinefeed
\d41d8cd98f00b204e9800998ecf8427e ../div/Üble Filenamen/with \\ Backslash
\d41d8cd98f00b204e9800998ecf8427e ../div/Üble Filenamen/with \\\\
Backslashes
a6a218b4d55f251551f21ac351bded8e ../div/Üble Filenamen/äöü?
...
Best regards,
W. Limmer
_______________________________________________
Bug-coreutils mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/bug-coreutils