| 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 |
| Date: | Wed, 2 Mar 2005 15:45:30 -0500 |
| From: | Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: More error level issues |
| Message-ID: | <20050302204530.GA25089@trixie.casa.cgf.cx> |
| Reply-To: | cygwin AT cygwin DOT com |
| References: | <001d01c51f66$9de4ccf0$05010e0a AT 2mbit DOT com> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <001d01c51f66$9de4ccf0$05010e0a@2mbit.com> |
| User-Agent: | Mutt/1.4.1i |
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |