GNU bug report logs - #17552
Sometimes md5sum misses files

Previous Next

Package: coreutils;

Reported by: "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>

Date: Thu, 22 May 2014 17:24:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


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

From: Pádraig Brady <P <at> draigBrady.com>
To: "Hamilton, Eric" <Eric.Hamilton <at> schneider-electric.com>
Cc: 17552 <at> debbugs.gnu.org
Subject: Re: bug#17552: Sometimes md5sum misses files
Date: Thu, 22 May 2014 18:35:35 +0100
tag 17552 notabug
close 17552
stop

On 05/22/2014 06:18 PM, Hamilton, Eric wrote:
> Hi
> 
>  
> 
> I just noticed that md5sum sometimes does not calculate a md5 checksum
> on a file when using wild cards.
> 
>  
> 
> I am running Cygwin64 under Windows7 64-bit and am executing the program
> within a Ms-Dos window.
> 
>  
> 
> My call is "md5sum *.h64"
> 
> md5sum "missed" doing a checksum on the lang.h64 file.
> 
>  
> 
> If I run md5sum directly on lang.h64, then I get a checksum.

I see in the zip file that the file name is actually lang.H64
I.E. a capital 'H'. So I'm guessing that the glob done
by the shell is case insensitive, while the file system
is only case retentive and so maps the lang.h64 request to lang.H64?

In bash for example you can run the following to
glob case insensitively:

  shopt -s nocaseglob

I've no experience on such platforms so the above is just a guess,
and we can open the bug again if there is an issue.

thanks,
Pádraig.




This bug report was last modified 11 years and 6 days ago.

Previous Next


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