This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: More error level issues
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 2 Mar 2005 15:45:30 -0500
- Subject: Re: More error level issues
- References: <001d01c51f66$9de4ccf0$05010e0a@2mbit.com>
- Reply-to: cygwin at cygwin dot com
On Wed, Mar 02, 2005 at 03:30:00PM -0500, Brian Bruns wrote:
>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.
http://sources.redhat.com/ml/cygwin/2005-01/msg01382.html
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/