bug-coreutils
[Top][All Lists]
Advanced

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

Re: md5sum and filenames containing \


From: Olivier Delhomme
Subject: Re: md5sum and filenames containing \
Date: Mon, 4 Apr 2005 23:06:22 +0200

On Sun, 03 Apr 2005 23:34:00 +0100, Steve Lilly was saying :

> Dear GNU,
> 
> I was testing one of my own scripts for robustness against exotic 
> filenames containing "\" when I noticed a peculiar behaviour from the 
> md5sum utility (version 5.2.1). To demonstrate:
> 
> address@hidden test]$ touch test\\test
> address@hidden test]$ ls
> test\test
> address@hidden test]$ md5sum *
> \d41d8cd98f00b204e9800998ecf8427e  test\\test
> 
> I have tried this with bash and tcsh. ls confirms the file has a single 
> \ character. It appears (to me at least) that md5sum is escaping the \ 
> to \\, but I'm baffled as to the extra \ at the beginning of the hash!

Here I have coreutils 5.2.1, debian 3.1 unstable, bash 3.00.16(1)
and I can not reproduce your problem. The hash value is correct and
without the \ at the beginning.

Please could you tell us which is your system and bash version ?
 
> Regards,
> Steve Lilly

Regards,
Olivier Delhomme.

Attachment: pgpbc7FgqWXke.pgp
Description: PGP signature


reply via email to

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