delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/08/06/07:35:34

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=l1Y7o/3uBym2iQ07
quhtbAOwHeYS0Lx9E9IyEwoZWBUnJZn7eFvtoOJGNq3js1GPGiEmQk2Htq8wazpB
OjOcu302s8AjDXe8XaMDJflKpZO55pabCeZryW4Hi6OoudDT5qdJfYIVw94Hy44q
lS0cKcHjLlhQZqQSX8XtF7znCpI=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=mcqEPkj4/WXSAJr4i1w28f
dPw94=; b=Ke4rBae1XUat9UGv5lOhLp3YTWaq3hoa+r13iKj4sCQsxULraXqh0c
j7/ZnfNyWp9E9MVg9a2/oHFA6UpL/i2j3PtrYGPW6uW7sIqme/W+gUaQUunAFbvw
ZmGE2lh/p917zmVKnoLAd+TPcB07YP4JfZVUvDQB+bjdeyIILBvlk=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Thu, 6 Aug 2015 14:30:35 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <501181462.20150806143035@yandex.ru>
To: Nicholas Clark <nicholas DOT clark AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1
In-Reply-To: <CAKNeuBqASXv_LC0vJC3F9bVDauQJ-1tWTT5L+to4JbGejyaXrw@mail.gmail.com>
References: <announce DOT 20150803131950 DOT GA18878 AT calimero DOT vinschen DOT de> <55BFB64C DOT 1010802 AT towo DOT net> <20150803192940 DOT GA19315 AT calimero DOT vinschen DOT de> <loom DOT 20150804T094839-714 AT post DOT gmane DOT org> <895515CC-6BB7-41E7-AEA5-30FBBE071153 AT etr-usa DOT com> <87wpxac2bj DOT fsf AT Rainer DOT invalid> <20150805075435 DOT GP17917 AT calimero DOT vinschen DOT de> <1324339149 DOT 20150805194114 AT yandex DOT ru> <CAKNeuBqe_w79RBcC=iRki7kZeDQdBen85kWuPZESO0SCGaCUAQ AT mail DOT gmail DOT com> <897487143 DOT 20150806031430 AT yandex DOT ru> <CAKNeuBqASXv_LC0vJC3F9bVDauQJ-1tWTT5L+to4JbGejyaXrw AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes

Greetings, Nicholas Clark!

> You're certainly right that there are nicer ways to write that script.
> My point with the sample script above is that I'm currently using a
> Windows-style HOME path, and it works fine.

If it would stop working, you'll have to o and revisit your mess to pull the
cruft out of the pipes.

> Chances are there are a bunch of other users out there who also use a
> Windows-style HOME path in messy .bat files - I just wanted to
> illuminate that making Windows paths illegal is likely to break a
> whole bunch of users' scripts, and really offers no benefit.

Chances are, they can go and revisit their mess once in a lifetime.
When 1.7.35 came out, I went and dug up every corner of my system to make sure
I no longer have the need for wrappers like yours.

Recently I started to write portable scripts for my private project and I've
replaced Cygwin's /bin/sh (which is in fact bash) with a symlink to /bin/dash.
We'll see how far I can go with it. Already found a number of scripts that
break under strict POSIX shell. None of them Cygwin scripts. Yet.


-- 
With best regards,
Andrey Repin
Thursday, August 6, 2015 14:26:24

Sorry for my terrible english...


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