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 Message-ID: <001d01c51f66$9de4ccf0$05010e0a@2mbit.com> From: "Brian Bruns" To: Subject: More error level issues Date: Wed, 2 Mar 2005 15:30:00 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Scan-Signature: dc683981613ddb615c8846e2f33e87e4 X-SA-Exim-Connect-IP: 141.153.151.58 X-SA-Exim-Mail-From: bruns AT 2mbit DOT com X-IsSubscribed: yes Hey all, Sorry to bring this up again, but I'm having issues again with Cygwin not passing error level codes back to the cmd shell. Example, when clamscan finds a virus, it issues a return code of 1. Inside of a Cygwin env it returns fine. ================ ../test/clam.exe: ClamAV-Test-File FOUND ----------- SCAN SUMMARY ----------- Known viruses: 31320 Engine version: devel-20050301 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Time: 3.372 sec (0 m 3 s) $ echo $? 1 ================ However, outside of Cygwin in a cmd shell, its returning 256 instead of 1 to cmd. ================ ../test/clam.exe: ClamAV-Test-File FOUND ----------- SCAN SUMMARY ----------- Known viruses: 31320 Engine version: devel-20050301 Scanned directories: 0 Scanned files: 1 Infected files: 1 Data scanned: 0.00 MB Time: 2.840 sec (0 m 2 s) >echo %ERRORLEVEL% 256 ================ I'm using Cygwin 1.5.13 - this apparently seems to work fine in 1.5.12. I know I brought up this issue in the past, and it was supposedly fixed, but it doesn't entirely look like it. This is Win2k Pro SP4. Thanks! -- Brian Bruns The Summit Open Source Development Group http://www.sosdg.org / http://www.ahbl.org -- 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/