Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Hannu E K Nevalainen \(garbage mail\)" To: Subject: RE: Find: missing alphabetically last dirtree Date: Sun, 14 Sep 2003 00:45:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0000_01C37A59.9011A7A0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Note-from-DJ: This may be spam ------=_NextPart_000_0000_01C37A59.9011A7A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sidenote: I've got a problem with running setup. Might have been caused by getting 1.3.22 version of cygwin1.dll installed at my update attempt earlier today. As things went wrong somewhere I tried brute force; Reinstall everything... setup.exe seems to have some peculiar problem with "Reinstall"-ing _update-info-dir-00213-1. It ends up with this: +-------------------------------------------+ [Microsoft Visual C++ Runtime Library x] (X) Runtime Error! Program: ...\setup-2.415.exe abnormal program termination [ OK ] +--------------------------------------------+ SIGH. Not checked what the problem is, setup-2.340.2.5 seems to have the same problem (IIRC). Stopped trying to reinstall. ... bash seems to come up as usual, so I'm not that worried. I guess it has something to do with that particular package. -- 1.5.4 - The same 'find' result as with previous snapshots. The Samples directory doesn't get traversed. There seems to be one positive change though... I've tested all three CD's in the MSDN set once again. I get "bad" results on *all* of them - i.e. _consistent_, though faulty behaviour for all of them. I've also tried a bunch of other _MICROSOFT_ CD's that I have, many of them show the same faulty result: One directory isn't traversed. I tried CD's I've burned myself (Digital picture collections); no fault, I tried other CD's too... not found one which fails. (e.g. Complete set of Redhat 8.0 CDs) I wouldn't be surprised if others may _reproduce_ this now... Any takers? Grab your favorite(!?) Microsoft-package-CD and run the attached script on it e.g. "mkdir z; cd z; find_check D:" Another thing; The first line of output here is new: $ command ls -lan P: ls: P:/..: No such file or directory total 16450 dr-xr-xr-x 5 500 513 0 Nov 21 2002 . 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 $ command ls -lan /cygdrive/p total 16450 dr-xr-xr-x 5 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 I'm goin to bed now... the time is 00:45, local. /Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E Filenames: FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13 FIND_CHK. <- literal -cygdrive-p <- CD was in in /cygdrive/p/ QTR37ENUD1 <- "label" of the CD D63D-731C <- "Serial number" 2003-09-13 <- Date of cygwin1.dll -- MSDN CD # 1 -- --- FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13.sw 2003-09-13 23:41:30.000000000 +0200 +++ FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13.sdir 2003-09-13 23:41:30.000000000 +0200 @@ -1,4 +1,3 @@ -p:\ p:\IE60 p:\NT4SP p:\Program Files @@ -58,3 +57,807 @@ p:\Program Files\Microsoft Visual Studio p:\Program Files\Microsoft Visual Studio .NET\Common7 p:\Program Files\Microsoft Visual Studio .NET\Common7\IDE p:\Samples +P:\Samples\VC +P:\Samples\VCSharp +P:\Samples\VCSharp\General +P:\Samples\VCSharp\General\CSharpAutomatingOffice +P:\Samples\VCSharp\General\CSharpAutomatingOffice\AutoWord +P:\Samples\VCSharp\General\CSharpAutomatingOffice\AutoWord\CreateWordAssemb ly +P:\Samples\VCSharp\General\CSharpAutomatingOffice\AutoWord\Example1 +P:\Samples\VCSharp\General\CSharpAutomatingOffice\AutoWord\Example2 +P:\Samples\VCSharp\General\CSharpAutomatingOffice\AutoWord\Example3 <*** SNIP ***> +P:\Samples\VC\ManagedExtensions\WindowsForms\progressbarctl +P:\Samples\VC\ManagedExtensions\WindowsForms\tabcontrolctl +P:\Samples\VC\ManagedExtensions\WindowsForms\trackbarctl +P:\Samples\VC\ManagedExtensions\WindowsForms\treeviewctl +P:\Samples\VC\ManagedExtensions\WindowsForms\updownctl +P:\Samples\VC\OS +P:\Samples\VC\OS\WindowsXP +P:\Samples\VC\OS\WindowsXP\GetImage +P:\Samples\VC\SFL +P:\Samples\VC\ServerApp *** 815 lines in FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13.diff *** Counting lines 863 FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13.sdir 60 FIND_CHK.-cygdrive-p-QTR37ENUD1-D63D-731C.2003-09-13.sw 923 total -- MSDN CD # 2 -- --- FIND_CHK.-cygdrive-p-QTR37ENUD2-1982-BE67.2003-09-13.sw 2003-09-13 23:35:00.000000000 +0200 +++ FIND_CHK.-cygdrive-p-QTR37ENUD2-1982-BE67.2003-09-13.sdir 2003-09-13 23:35:02.000000000 +0200 @@ -1,2 +1,4 @@ -p:\ p:\Program Files +P:\Program Files\MSDN +P:\Program Files\MSDN\2003JAN +P:\Program Files\MSDN\2003JAN\1033 *** Counting lines 4 FIND_CHK.-cygdrive-p-QTR37ENUD2-1982-BE67.2003-09-13.sdir 2 FIND_CHK.-cygdrive-p-QTR37ENUD2-1982-BE67.2003-09-13.sw 6 total $ command ls -lan P: ls: P:/..: No such file or directory total 0 dr-xr-xr-x 2 500 513 0 Nov 21 2002 . dr-xr-xr-x 3 500 513 0 Nov 21 2002 Program Files -- MSDN CD # 3 -- --- FIND_CHK.-cygdrive-p-QTR37ENUD3-7DBC-00D2.2003-09-13.sw 2003-09-13 23:36:58.000000000 +0200 +++ FIND_CHK.-cygdrive-p-QTR37ENUD3-7DBC-00D2.2003-09-13.sdir 2003-09-13 23:36:58.000000000 +0200 @@ -1,2 +1,4 @@ -p:\ p:\Program Files +P:\Program Files\MSDN +P:\Program Files\MSDN\2003JAN +P:\Program Files\MSDN\2003JAN\1033 *** Counting lines 4 FIND_CHK.-cygdrive-p-QTR37ENUD3-7DBC-00D2.2003-09-13.sdir 2 FIND_CHK.-cygdrive-p-QTR37ENUD3-7DBC-00D2.2003-09-13.sw 6 total $ command ls -lan P: ls: P:/..: No such file or directory total 0 dr-xr-xr-x 2 500 513 0 Nov 21 2002 . dr-xr-xr-x 3 500 513 0 Nov 21 2002 Program Files -- Redhat Linux 8.0, first CD -- --- FIND_CHK.-cygdrive-p-Red_Hat_Linux_i3-2CC3-AD5E.2003-09-13.sw 2003-09-14 00:02:30.000000000 +0200 +++ FIND_CHK.-cygdrive-p-Red_Hat_Linux_i3-2CC3-AD5E.2003-09-13.sdir 2003-09-14 00:02:30.000000000 +0200 @@ -1,4 +1,3 @@ -p:\ p:\RedHat p:\RedHat\RPMS p:\RedHat\base *** Counting lines 16 FIND_CHK.-cygdrive-p-Red_Hat_Linux_i3-2CC3-AD5E.2003-09-13.sdir 17 FIND_CHK.-cygdrive-p-Red_Hat_Linux_i3-2CC3-AD5E.2003-09-13.sw 33 total $ command ls -lan P: ls: P:/..: No such file or directory total 544 dr-xr-xr-x 6 500 513 0 Sep 10 2002 . -r--r--r-- 1 500 513 75 Sep 10 2002 .discinfo -r--r--r-- 1 500 513 6194 Sep 10 2002 EULA -r--r--r-- 1 500 513 18385 Sep 10 2002 GPL -r--r--r-- 1 500 513 5350 Sep 10 2002 README -r--r--r-- 1 500 513 13342 Sep 10 2002 README-Accessibility -r--r--r-- 1 500 513 5781 Sep 10 2002 README.de -r--r--r-- 1 500 513 5956 Sep 10 2002 README.es -r--r--r-- 1 500 513 6351 Sep 10 2002 README.fr -r--r--r-- 1 500 513 5684 Sep 10 2002 README.it -r--r--r-- 1 500 513 6836 Sep 10 2002 README.ja -r--r--r-- 1 500 513 6566 Sep 10 2002 README.ko -r--r--r-- 1 500 513 4965 Sep 10 2002 README.zh_CN -r--r--r-- 1 500 513 5267 Sep 10 2002 README.zh_TW -r--r--r-- 1 500 513 37493 Sep 10 2002 RELEASE-NOTES -r--r--r-- 1 500 513 47340 Sep 10 2002 RELEASE-NOTES-de.html -r--r--r-- 1 500 513 44726 Sep 10 2002 RELEASE-NOTES-es.html -r--r--r-- 1 500 513 47994 Sep 10 2002 RELEASE-NOTES-fr.html -r--r--r-- 1 500 513 44680 Sep 10 2002 RELEASE-NOTES-it.html -r--r--r-- 1 500 513 56720 Sep 10 2002 RELEASE-NOTES-ja.html -r--r--r-- 1 500 513 50814 Sep 10 2002 RELEASE-NOTES-ko.html -r--r--r-- 1 500 513 37770 Sep 10 2002 RELEASE-NOTES-zh_CN.html -r--r--r-- 1 500 513 39122 Sep 10 2002 RELEASE-NOTES-zh_TW.html -r--r--r-- 1 500 513 42160 Sep 10 2002 RELEASE-NOTES.html -r--r--r-- 1 500 513 1910 Sep 10 2002 RPM-GPG-KEY dr-xr-xr-x 4 500 513 0 Sep 10 2002 RedHat -r--r--r-- 1 500 513 1589 Sep 10 2002 TRANS.TBL -r-xr-xr-x 1 500 513 248 Sep 10 2002 autorun dr-xr-xr-x 7 500 513 0 Sep 10 2002 dosutils dr-xr-xr-x 3 500 513 0 Sep 10 2002 images dr-xr-xr-x 2 500 513 0 Sep 10 2002 isolinux --END OF MESSAGE-- ------=_NextPart_000_0000_01C37A59.9011A7A0 Content-Type: application/octet-stream; name="find_check" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="find_check" #!/bin/bash=0A= =0A= #=0A= # Category: Totally Free Stuff=0A= # Author: Hannu E K Nevalainen, Mariefred, Sweden in September 2003=0A= # =0A= # Verify the output of cygwin 'find'=0A= # =0A= # Date Version Comment=0A= # 2003-09-12 1.0 Made it be slightly more general than prior = versions=0A= # 2003-09-13 1.1 $fn could end up with spaces in it, sed fixes that.=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= VOL=3D"`cmd /c dir ${TESTP} | ( read Vol Vol Vol Vol Vol Vol ; echo $Vol = )`"=0A= SER=3D"`cmd /c dir ${TESTP} | ( read Ser ; read Ser Ser Ser Ser Ser; = echo $Ser )`"=0A= =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 ; = echo $D) | sed -e 's./.-.g'`=0A= =0A= fn=3D"`echo FIND_CHK.${P}-${VOL}-${SER}.${D} | sed -e 's. ._.g'`"=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 =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 =0A= =0A= echo "=0A= *** Remove FILES created of this run with:=0A= rm ${fn}.*=0A= =0A= *** See full diff with:=0A= less ${fn}.diff=0A= =0A= *** Compare dir/find output with:=0A= diff -y ${fn}.sw ${fn}.sdir | less"=0A= ------=_NextPart_000_0000_01C37A59.9011A7A0 Content-Type: text/plain; charset=us-ascii -- 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_0000_01C37A59.9011A7A0--