bug-gnu-utils
[Top][All Lists]
Advanced

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

win32 diff (GNU diffutils) 2.8.1 "--ignore-file-name-case" switch doesn'


From: Pinchao Lu
Subject: win32 diff (GNU diffutils) 2.8.1 "--ignore-file-name-case" switch doesn't work
Date: Thu, 8 Jan 2004 13:58:57 -0800 (PST)

Hi,

I've been using gnu diff to compare directories on
Windows. The version I am using is 2.8.1. I got the 
binary from here:
http://gnuwin32.sourceforge.net/packages/diffutils.htm

It seems that if two files in two directories differ 
only in case, i.e, one is in lower case and the other 
one in upper case, diff doesn't compare the two files,
even with the "--ignore-file-name-case" switch.

I've attached a detailed log to demonstrate this
problem.

Thanks,

Pinchao Lu


========================================================
D:\test>dir
 Volume in drive D is Data
 Volume Serial Number is AAA3-90ED

 Directory of D:\test

01/08/2004  04:24 PM    <DIR>          .
01/08/2004  04:24 PM    <DIR>          ..
01/08/2004  04:28 PM    <DIR>          dir1
01/08/2004  04:28 PM    <DIR>          dir2
               0 File(s)              0 bytes
               4 Dir(s)   2,658,672,640 bytes free

D:\test>dir dir1
 Volume in drive D is Data
 Volume Serial Number is AAA3-90ED

 Directory of D:\test\dir1

01/08/2004  04:28 PM    <DIR>          .
01/08/2004  04:28 PM    <DIR>          ..
01/08/2004  04:27 PM                32 TEST.TXT
               1 File(s)             32 bytes
               2 Dir(s)   2,658,672,640 bytes free

D:\test>dir dir2
 Volume in drive D is Data
 Volume Serial Number is AAA3-90ED

 Directory of D:\test\dir2

01/08/2004  04:28 PM    <DIR>          .
01/08/2004  04:28 PM    <DIR>          ..
01/08/2004  04:28 PM                40 test.txt
               1 File(s)             40 bytes
               2 Dir(s)   2,658,672,640 bytes free

D:\test>type dir1\TEST.TXT
Line 1
Line 2
Line 3
Line 4

D:\test>type dir2\test.txt
Line 1
Line 2
Line 3
Line 4
Line 5

D:\test>diff dir1 dir2
Only in dir1: TEST.TXT
Only in dir2: test.txt

D:\test>diff --ignore-file-name-case dir1 dir2
Only in dir1: TEST.TXT
Only in dir2: test.txt

D:\test>diff --no-ignore-file-name-case dir1 dir2
Only in dir1: TEST.TXT
Only in dir2: test.txt

D:\test>diff dir1\TEST.TXT dir2
4a5
> Line 5

D:\test>diff dir1 dir2\test.txt
4a5
> Line 5

D:\test>diff -u dir1\TEST.TXT dir2\test.txt
--- dir1/TEST.TXT       2004-01-08 16:27:22.000000000
-0500
+++ dir2/test.txt       2004-01-08 16:28:01.000000000
-0500
@@ -2,3 +2,4 @@
 Line 2
 Line 3
 Line 4
+Line 5

D:\test>diff --version
diff (GNU diffutils) 2.8.1
Copyright (C) 2002 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent
permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file
named COPYING.

Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus




reply via email to

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