X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0	tests=AWL,BAYES_00,KHOP_THREADED,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4F7C8E4B.6080807@etr-usa.com>
Date: Wed, 04 Apr 2012 12:09:15 -0600
From: Warren Young <warren@etr-usa.com>
User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
MIME-Version: 1.0
To: Cygwin-L <cygwin@cygwin.com>
Subject: Re: Is this supposed to work this way?
References: <0105D5C1E0353146B1B222348B0411A20A6536CB91@NIHMLBX02.nih.gov> <602324786.20120404044708@mtu-net.ru> <4F7B9C81.4060209@redhat.com> <696106181.20120404053558@mtu-net.ru> <4F7BC6B1.8030506@etr-usa.com> <103388385.20120404130124@mtu-net.ru> <4F7C4CD2.3090005@redhat.com>
In-Reply-To: <4F7C4CD2.3090005@redhat.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 4/4/2012 7:29 AM, Eric Blake wrote:
> On 04/04/2012 03:01 AM, Andrey Repin wrote:
>
>> Well, then, following your wisdom, I have to clog every line of my script with
>> "... || exit" or an equivalent.
>
> No, you don't.  You can factor out your feature checks up front,

This.

Maybe I'm misreading your problem, Andrey, but I got the impression from 
your STC that all it would take to fix it is to translate passed-in 
paths at the start of the script, if needed.  Everything that follows 
could then treat the paths portably.

Where is this error-checks-on-every-line horror?  I don't see how it 
emerges from your STC.

Simple test cases are great as far as they go, but maybe you've 
oversimplified this one, so I'm solving the toy problem posed by the 
STC, while entirely missing the actual problem.

--
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

