From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8688 invoked by alias); 12 Sep 2003 21:21:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 8680 invoked from network); 12 Sep 2003 21:21:22 -0000 Received: from unknown (HELO smtp5.hy.skanova.net) (195.67.199.134) by sources.redhat.com with SMTP; 12 Sep 2003 21:21:22 -0000 Received: from P450 (t6o73p101.telia.com [213.64.24.221]) by smtp5.hy.skanova.net (8.12.9/8.12.9) with SMTP id h8CLLJk7014108 for ; Fri, 12 Sep 2003 23:21:20 +0200 (CEST) From: "Hannu E K Nevalainen \(garbage mail\)" To: Subject: RE: Find: missing alphabetically last dirtree Date: Fri, 12 Sep 2003 21:21:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000C_01C37984.92AE8260" X-Priority: 3 (Normal) X-MSMail-Priority: Normal In-Reply-To: <20030912182120.GF12713@redhat.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-SW-Source: 2003-09/txt/msg00790.txt.bz2 ------=_NextPart_000_000C_01C37984.92AE8260 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-length: 5758 > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf > Of Christopher Faylor > On Fri, Sep 12, 2003 at 06:36:18PM +0200, Hannu E K Nevalainen > (garbage mail) wrote: > >> From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com]On Behalf > >> Of Christopher Faylor > > > > > >> Well, I have a theory on why this is happening and have checked > >> in a change > >> to deal with it. I'm generating a snapshot now. Please give it a try. > >> > >> cgf > > > > > >Sorry to report this; the changes you made seems not be enough... > >My test script attached, output inline below. To clarify, I have verified that the difference is null - by use of 'diff' and a slightly modified version of my 'find_test' script. The script BTW is more general now, reworked even after generating stuff for this mail; it might become useful for others having the same problem. Run without args for a short explanation. (attached) -- cut here -- $ diff -iup 2003-09-11_MSDN1_dirs.diff 2003-09-12_MSDN1_dirs.diff --- 2003-09-11_MSDN1_dirs.diff 2003-09-12 20:05:22.000000000 +0200 +++ 2003-09-12_MSDN1_dirs.diff 2003-09-12 20:20:48.000000000 +0200 @@ -1,5 +1,5 @@ ---- 2003-09-11_MSDN1_dirs-sw 2003-09-12 20:05:22.000000000 +0200 -+++ 2003-09-11_MSDN1_dirs.sdir 2003-09-12 20:01:34.000000000 +0200 +--- 2003-09-12_MSDN1_dirs-sw 2003-09-12 20:20:48.000000000 +0200 ++++ 2003-09-12_MSDN1_dirs.sdir 2003-09-12 20:17:00.000000000 +0200 @@ -1,4 +1,3 @@ -p:\ p:\IE60 -- cut here -- i.e. just names of files (which get generated by the script) differ. > Well, I'm fresh out of ideas, then. I'm back to being unable to fix what > I can't duplicate. :?7 sorry to hear that... I did try another thing; copy the contents of the CD to a FAT32(D:) and a NTFS(F:) partition and then try my script on the result, using the 2003-09-12 snapshot. Dunno if this tells us anything, but I was a bit curious. Outcome: FAT32 AND NTFS - find works as it should. Guess: there is something peculiar with the CDROM fs or contents! -- FAT32 partition, CD contents copied w Explorer.exe FROM the CD -- $ ls -lna /cygdrive/d/MSDN1/ total 16450 drwxr-xr-x 6 500 0 Sep 12 21:16 ./ drwxr-xr-x 2 500 0 Jan 1 1970 ../ dr-xr-xr-x 2 500 0 Sep 12 21:30 IE60/ -r-xr-xr-x 1 500 1707856 Oct 15 2001 InstMSIA.exe* -r-xr-xr-x 1 500 1821008 Sep 24 2001 InstMSIW.exe* dr-xr-xr-x 2 500 0 Sep 12 21:16 NT4SP/ dr-xr-xr-x 4 500 0 Sep 12 21:17 Program Files/ dr-xr-xr-x 4 500 0 Sep 12 21:22 Samples/ -r-xr-xr-x 1 500 45126 Sep 28 2002 autorun.exe* -r--r--r-- 1 500 29 Oct 17 2001 autorun.inf -r--r--r-- 1 500 13181440 Nov 21 2002 msdn.msi -r--r--r-- 1 500 3584 Mar 1 2002 msdnadvt.mst -r--r--r-- 1 500 23245 Nov 16 2002 readme.htm -r-xr-xr-x 1 500 57409 May 10 2002 setup.exe* -- NTFS partition, CD contents copied w Explorer.exe FROM D: -- -- I doubt there would be any difference if I copied P: directly to F: -- $ ls -lna /cygdrive/f/MSDN1/ total 16450 drwxrwxrwx+ 6 544 4096 Sep 12 21:36 ./ drwxrwxrwx+ 2 544 8192 Sep 12 21:32 ../ dr-xr-xr-x+ 2 544 0 Sep 12 21:33 IE60/ -r-xr-xr-x 1 544 1707856 Oct 15 2001 InstMSIA.exe* -r-xr-xr-x 1 544 1821008 Sep 24 2001 InstMSIW.exe* dr-xr-xr-x+ 2 544 0 Sep 12 21:36 NT4SP/ dr-xr-xr-x+ 4 544 0 Sep 12 21:36 Program Files/ dr-xr-xr-x+ 4 544 0 Sep 12 21:34 Samples/ -r-xr-xr-x 1 544 45126 Sep 28 2002 autorun.exe* -r-xr-xr-x 1 544 29 Oct 17 2001 autorun.inf* -r-xr-xr-x 1 544 13181440 Nov 21 2002 msdn.msi* -r-xr-xr-x 1 544 3584 Mar 1 2002 msdnadvt.mst* -r-xr-xr-x 1 544 23245 Nov 16 2002 readme.htm* -r-xr-xr-x 1 544 57409 May 10 2002 setup.exe* > It would be interesting to see a 'ls -al' again, though, using the > snapshot DLL. To be sure it is what you want: first some output to verify the version of cygwin1.dll $ cygcheck -svr | grep -i cygwin1 945k 2003/09/01 C:\Program\cygwin\bin\cygwin1-2003-09-01.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/9/1 19:15 948k 2003/09/11 C:\Program\cygwin\bin\cygwin1-2003-09-11.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/9/11 5:01 948k 2003/09/12 C:\Program\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2003/9/12 8:49 DLL identifier: cygwin1 Shared id: cygwin1S3 $ command ls -aln /cygdrive/p/ total 16450 dr-xr-xr-x 2 500 513 0 Nov 21 2002 . dr-xr-xr-x 16 0 0 0 Jan 1 1970 .. dr-xr-xr-x 2 500 513 0 Nov 21 2002 IE60 -r-xr-xr-x 1 500 513 1707856 Oct 15 2001 InstMSIA.exe -r-xr-xr-x 1 500 513 1821008 Sep 24 2001 InstMSIW.exe dr-xr-xr-x 2 500 513 0 Nov 21 2002 NT4SP dr-xr-xr-x 4 500 513 0 Nov 21 2002 Program Files dr-xr-xr-x 4 500 513 0 Nov 21 2002 Samples -r-xr-xr-x 1 500 513 45126 Sep 28 2002 autorun.exe -r--r--r-- 1 500 513 29 Oct 17 2001 autorun.inf -r--r--r-- 1 500 513 13181440 Nov 21 2002 msdn.msi -r--r--r-- 1 500 513 3584 Mar 1 2002 msdnadvt.mst -r--r--r-- 1 500 513 23245 Nov 16 2002 readme.htm -r-xr-xr-x 1 500 513 57409 May 10 2002 setup.exe /Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E Yet another sad "9/11" story -> http://cnn.com/2003/WORLD/europe/09/11/sweden.stabbing/index.html --END OF MESSAGE-- ------=_NextPart_000_000C_01C37984.92AE8260 Content-Type: application/octet-stream; name="find_check" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="find_check" Content-length: 2836 #!/bin/bash=0A= =0A= #=0A= # Category: Totally Free Stuff=0A= # Author: Hannu E K Nevalainen, Mariefred, Sweden in September 2003=0A= #=20=0A= # Verify the output of cygwin 'find'=0A= #=20=0A= # Date Version Comment=0A= # 2003-09-12 1.0 Made it be slightly more general than prior versions= =0A= #=0A= =0A= =0A= if [ -z "$1" ] ;then=0A= echo -e "=0A= use $0 DIRECTORY=0A= =0A= This will launch 'cmd /c dir.exe' -and- '/bin/find.exe' on=0A= DIRECTORY, performing the necesary conversion and then=0A= launching /bin/diff.exe on it.=0A= =0A= It creates a bunch of files in the current directory; names as in:=0A= FIND_TEST_..=0A= =0A= is:=0A= (s)dir - (sorted) cmd /c dir.exe output=0A= find - output of find=0A= w - find output, with MS-style paths=0A= sw - .w contents sorted=0A= diff - output of 'diff -iup' on sdir and sw files=0A= =0A= NOTE: sw and sdir files will ALWAYS have LF line endings."=0A= exit 1=0A= fi=0A= =0A= =0A= TESTP=3D"`cygpath -wl \"$1\"`"=0A= TESTPCYG=3D"`cygpath -u ${TESTP}`"=0A= P=3D"`echo ${TESTPCYG} | sed -e 's./._.g'`"=0A= =0A= echo "=0A= About to check if 'C:DIR.EXE /AD' and '/BIN/FIND.EXE -TYPE D'=0A= outputs match for ${TESTP} and ${TESTPCYG}=0A= -------------------------------------------------------------"=0A= =0A= echo "=0A= *** Generating cygcheck output"=0A= cygcheck -svr >c_svr-snap.txt=0A= =0A= echo "=0A= *** grep -i CYGWIN1 from cygcheck output"=0A= grep -i cygwin1 c_svr-snap.txt=0A= D=3D`grep -i ".bin.cygwin1.dll" c_svr-snap.txt | ( read size D scratch ; ec= ho $D) | sed -e 's./.-.g'`=0A= =0A= fn=3DFIND_TEST_${P}.${D}=0A= =0A= echo "=0A= *** Generating DIR output"=0A= cmd /c dir /ad /s /b "${TESTP}" >${fn}.dir=0A= sort ${fn}.dir >${fn}.sdir=0A= =0A= echo "=0A= *** Generating find output"=0A= find "${TESTPCYG}" -type d >${fn}.find=0A= =0A= echo "=0A= *** Converting find output to MS-style paths"=0A= cat ${fn}.find | ( read line; while [ ! -z "$line" ]; \=0A= do cygpath -w "$line"; read line; done) >${fn}.w=0A= sort ${fn}.w >${fn}.sw=20=0A= =0A= echo "=0A= *** Generating diff output"=0A= d2u ${fn}.sdir ${fn}.sw >/dev/null 2>&1=0A= diff -iup ${fn}.sw ${fn}.sdir >${fn}.diff=0A= if [ `wc -l <${fn}.diff` -gt 30 ] ; then=0A= head -20 ${fn}.diff=0A= echo "=0A= <*** SNIP ***>=0A= "=0A= tail ${fn}.diff=0A= echo "=0A= *** `wc -l <${fn}.diff` lines in ${fn}.diff"=0A= else=0A= cat ${fn}.diff=0A= fi=0A= =0A= echo "=0A= *** Counting lines"=0A= wc -l ${fn}.sdir ${fn}.sw >/dev/null=0A= =0A= echo "=0A= *** Remove FILES created of this run with:=0A= rm ${fn}.*=0A= =20=0A= *** See full diff with:=0A= less ${fn}.diff=0A= =20=0A= *** Compare dir/find output with:=0A= diff -y ${fn}.sw ${fn}.sdir | less"=0A= =0A= ------=_NextPart_000_000C_01C37984.92AE8260 Content-Type: text/plain; charset=us-ascii Content-length: 218 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_000C_01C37984.92AE8260--