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 Date: Tue, 5 Jul 2005 16:35:24 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: cygcheck exit status Message-ID: <20050705203524.GA10567@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <070520051925 DOT 9884 DOT 42CADE90000B336F0000269C22007348300A050E040D0C079D0A AT comcast DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <070520051925.9884.42CADE90000B336F0000269C22007348300A050E040D0C079D0A@comcast.net> User-Agent: Mutt/1.5.8i On Tue, Jul 05, 2005 at 07:25:04PM +0000, Eric Blake wrote: >It is annoying that cygcheck exits with status 0, even if it could not find a file: > >$ cygcheck /bin/lilypond.exe >C:/cygwin/bin/lilypond.exe > C:/cygwin/bin\cygwin1.dll > C:\WINNT\system32\ADVAPI32.DLL > C:\WINNT\system32\NTDLL.DLL > C:\WINNT\system32\KERNEL32.DLL > C:\WINNT\system32\RPCRT4.DLL > C:/cygwin/bin\cygguile-12.dll > C:/cygwin/bin\cygcrypt-0.dll > C:/cygwin/bin\cygguile-ltdl-1.dll > C:/cygwin/bin\cygintl-3.dll > C:/cygwin/bin\cygiconv-2.dll >Error: could not find cygkpathsea-4.dll >$ echo $? >0 >$ cygcheck none >Error: could not find none >$ echo $? >0 > >This makes exit status worthless when trying to use cygcheck to verify if >an existing file has any broken dependencies (a la the bash upgrade >scenarios being discussed on cygwin-apps). I tried to prepare a patch, >but returning EXIT_FAILURE from main() still produced a 0 exit status, >so it might be that the magic that makes cygcheck know about >cygwin1.dll while still being a Windows app needs fixing, too. This should be fixed in the current snapshot. cgf -- 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/