X-Recipient: archive-cygwin@delorie.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=tGrxOM9DDcqtTION
	jxGBHBevCXvaot0tsE3TyxRnj0KAgOs43CG0yLOIlNGM25Xb7qXAkTmDer0/Fi6Z
	FjOSqUW5veNDERQV4h2KQ0fmYt9VoQPI6kBAUlBhYgUVZUzMUGIylPbsPYuuvk0m
	7H2htFM7K6slwHIgQcXgT6Igswg=
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=VYLcPh5cZ2LtrNHdIshc4P
	GpR38=; b=RYAf/e1yBhly3flRRpOFkYIGiTajoKhgZDG0zflsxtL39ipbhJHZNy
	tLO8645O3GOzKUYbUswdUa0mJVclrM+YAUZlCb4HGvroIULpkoCVIpSgC0I3B6oM
	zK5r6mBEmdc3GhWueOUm5NB3JQ1heBOUernkNhzYJD8y6LlmMIL54=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: Yes, score=6.6 required=5.0 tests=AWL,BAYES_60,DOS_STOCK_BAT,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Fri, 19 Jun 2015 13:33:33 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <23854981.20150619133333@yandex.ru>
To: Corinna Vinschen <cygwin@cygwin.com>, cygwin@cygwin.com
Subject: Re: Arguments parsing in cygwin executables
In-Reply-To: <20150619090148.GT31537@calimero.vinschen.de>
References: <CAMSC8GNk-V8qW3jKLOFayN8HRckOWdpwS26rzG_ofH4O3=s=og@mail.gmail.com>   <20150619084404.GS31537@calimero.vinschen.de>  <20150619090148.GT31537@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Corinna Vinschen!

>> > BTW, in CYGWIN=glob mode, curly braces are handled wrongly
>> > (c:\cygwin\echo.exe {aa} should return {aa}, not aa; because no , or
>> > .. inside {}).
>> 
>> I don't think so.  GLOB_BRACE globbing is meant to do brance globbing
>> just as csh does.  This doesn't require a comma or anything else within
>> the braces.  Try this in tcsh or even bash.  The underlying code is

> No, not in bash.  I see what you mean.  Bash handles that differently
> than [t]csh.  However, csh is the obvious role model for this behaviour,
> so if I had to choose who's right and who's wrong, csh (and thus the
> glob original BSD code) is the clear winner.

I would also argue that bash handling is wrong.
But it is historical, and unlikely to change, I guess.

>> (almost) stock FreeBSD code, btw.


-- 
With best regards,
Andrey Repin
Friday, June 19, 2015 13:32:45

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

