| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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: | ericblake AT comcast DOT net (Eric Blake) |
| To: | cygwin AT cygwin DOT com |
| Subject: | cygcheck exit status |
| Date: | Tue, 05 Jul 2005 19:25:04 +0000 |
| Message-Id: | <070520051925.9884.42CADE90000B336F0000269C22007348300A050E040D0C079D0A@comcast.net> |
| X-Authenticated-Sender: | ZXJpY2JsYWtlQGNvbWNhc3QubmV0 |
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.
--
Eric Blake
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |