delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/07/04/18:25:41

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=gaaqZIZp0ytk7CvK
EnUlipZzcfuj0lfvsAXjXXJj04kfhWfJF3d4Me5sGv15UhRfjl10hotycNFzeElW
7aJgMCMIDY3DsJ1xF5BYOV0PxP3+1GBxB9JXuBfMf41cgFfl5GR3xHFZEeZvYWpD
phtFkm6RNFodL9EBZTB2Ssna6Po=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=7DJykUOK+bFVZhPQJo/x/B
XNk1A=; b=psCCmNfi+Y3XlssFYKuNqO04ARBAgU7Kwzm8ncLFt1XaXgv7y6S8KN
jBW/X4/f1bPzMfmXQbXPRiGPxSAzVOH0gtodWx3Dg2pcPOGwYabRmlDBHDnsZdOU
OH31hzDFrDqYCvM1eTIgjppFtdhy6HTityQkmtqZmyoarR9NfasRY=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_COUK,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*F:D*co.uk, H*Ad:D*co.uk, programme, Hx-languages-length:750
X-HELO: smtp-out-6.tiscali.co.uk
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tiscali.co.uk; s=1605; t=1530743114; bh=XkXjjSLbwjJRBecwdNB7z0iREII7PVVuhBDshYZsm8E=; h=Subject:To:References:From:Date:In-Reply-To; b=SbxltV4DPeVuojzRhexj8n1UE001awlgRDS6AsGQKzAfVwcDHYVqxOpGJcb+f3FAd Vfqpn5BzSlFB1GbTuspbC0vMgkf5KIO/tjxvCOaX373TunPpOJJPAGI1JLtgxUaEJl G82Cz9sRI6f5YqCdIPjkqdyneYAsQkN9U5XdcRM8=
Subject: Re: Unattended upgrade does not report errors via the exit code
To: cygwin AT cygwin DOT com
References: <693796192 DOT 3838665 DOT 1530640512441 DOT ref AT mail DOT yahoo DOT com> <693796192 DOT 3838665 DOT 1530640512441 AT mail DOT yahoo DOT com> <126e0d40-4dd2-126d-b54c-7ddc27d008b8 AT cornell DOT edu>
From: David Stacey <drstacey AT tiscali DOT co DOT uk>
Message-ID: <7a9215c3-a895-b935-a843-e47b4135f138@tiscali.co.uk>
Date: Wed, 4 Jul 2018 23:25:08 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0
MIME-Version: 1.0
In-Reply-To: <126e0d40-4dd2-126d-b54c-7ddc27d008b8@cornell.edu>
X-IsSubscribed: yes

On 04/07/18 19:59, Ken Brown wrote:
> On 7/3/2018 1:55 PM, R. Diez via cygwin wrote:
>> I tried printing $? from a Cygwin shell afterwards, and %ERRORLEVEL% 
>> in a Windows console, and it always showed an exit status of 0.
>
> setup is a Windows program, not a Cygwin application, so I don't think 
> you can expect $? to contain its exit status.  I don't know enough 
> about Windows programming to know what would have to be changed in the 
> setup sources to support %ERRORLEVEL%.

%ERRORLEVEL% is the return code from the last programme or script to 
execute. Provided that setup exits with zero on success and non-zero on 
an error condition, there's nothing extra to be done.

Dave.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019