Arguments parsing in cygwin executables

Andrey Repin
Fri Jun 19 10:35:00 GMT 2015

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:
Unsubscribe info:

More information about the Cygwin mailing list