delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/04/04/14:09:45

X-Recipient: archive-cygwin AT delorie DOT 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 AT etr-usa DOT 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 AT cygwin DOT com>
Subject: Re: Is this supposed to work this way?
References: <0105D5C1E0353146B1B222348B0411A20A6536CB91 AT NIHMLBX02 DOT nih DOT gov> <602324786 DOT 20120404044708 AT mtu-net DOT ru> <4F7B9C81 DOT 4060209 AT redhat DOT com> <696106181 DOT 20120404053558 AT mtu-net DOT ru> <4F7BC6B1 DOT 8030506 AT etr-usa DOT com> <103388385 DOT 20120404130124 AT mtu-net DOT ru> <4F7C4CD2 DOT 3090005 AT redhat DOT com>
In-Reply-To: <4F7C4CD2.3090005@redhat.com>
X-IsSubscribed: yes
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

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

- Raw text -


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