This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More error level issues


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]