[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#333953: bash: LC_COLLATE ignores nocaseglob in some locales



Toni Mueller wrote:

> I must admit that I am not sure that I completely understood your
> opengroup references, but would like to point out that programmers and
> systems administrators may have quite different requirements than "end
> users", which these Posix documents are clearly aimed at

Really?

Posix mainly documents existing practice.  The goal is portability,
and casual users might care about that but programmers and sysadmins
tend to care a lot more.

One can be forgiven for missing this in the spec, though.  The only
hint of its intended audience I could find is

	POSIX.1-2008 is intended to be used by both application
	developers and system implementors

> I therefore request that the options nocaseglob and nocasematch are
> made to work as primarily documented

Actually nocaseglob and nocasematch seem a bit like red herrings here.
They are about globs like

	a*

matching files that start with a capital A, too.  Without these
options, the question about [a-z] would exist just as much (though
maybe you can convince someone willing to work on this to add a
new FNM_STRICTCASE flag, maintain a separate version of the collation
order for each locale for its use, and add a strictcaseglob option to
request its use).

You might also find that the friendly people in the Austin Group
could help with coming up with a consistent behavior that fits your
needs, provided you can resist insulting them.

But I will stop here.

Regards,
Jonathan



Reply to: