Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Help wanted with debugging a weird glob behavior
- X-seq: zsh-users 24165
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Aryn Starr <whereislelouch@xxxxxxxxxx>
- Subject: Re: Help wanted with debugging a weird glob behavior
- Date: Tue, 20 Aug 2019 12:04:58 +0100
- Cc: Zsh Users List <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=bR9cQL28MtQkploYuI6r5AorQ89DiohrWDqfvdl/K0I=; b=G3DCSoQ7tRFh3mMByz5ktv0A9sntIqC8npmFiTIRBGZ2j4Qa9nN1rZ2Wh6T65JjFYS 6mWNV8swVrCyRoC2uWm39MRCY3IDXM/Ey1NMXKTiPrHJ1HirN68Sv+frD2UBHVWmYcID h3ONyA4PV5Ie5AMAMW2lsnP3XVUUzyV8lfZYGUlZIxCvghlH5aUtwZvwnEZ0aGjLO6vY X7q96d/3AWzdUpCzr+P8NNwjx75KEoZ7nclkx8HSaT+iT5gFiCGyGR5+0cvJQneYBqt3 dfPzfcDk7dHk2EEcLblw5Wtyj6vBYL9zbhkRmlNZ1WD0N67UtB2ZJzBQw/G5yzO+u6R0 o/Kg==
- In-reply-to: <A227EBEE-60CC-460D-BBAD-D5E0A3386B4B__40377.5387721666$1566291837$gmane$org@icloud.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: Aryn Starr <whereislelouch@xxxxxxxxxx>, Zsh Users List <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <0628A0E5-63F0-481E-AEC2-962658134620__9154.55124793283$1566242642$gmane$org@icloud.com> <20190820073701.wcrxekoejx7xi77x@chaz.gmail.com> <227BE55C-4B7E-4CAD-B212-D48F663BC09D@icloud.com> <20190820082150.usmq3gmh3wdipg3g@chaz.gmail.com> <A227EBEE-60CC-460D-BBAD-D5E0A3386B4B__40377.5387721666$1566291837$gmane$org@icloud.com>
2019-08-20 13:32:31 +0430, Aryn Starr:
> Indeed, I do have `nocaseglob` :) Can’t zsh be made to try to
> match the decomposed form, too? (Perhaps as a new option?) I
> don’t think putting `iconv`s everywhere is a sustainable
> practice …
[...]
I suppose we could have an option similar to nocaseglob like
unicodeequivalenceglob where U+00E9 would match both U+00E9 and
U+0065U+0301 and vice-versa for instance (which you could
combine with nocaseglob and could probably be abused in a number
of ways and cause all sorts of security vulnerabilities like
that HFS+ design and case insenstive FS/nocaseglob already do).
I don't know if there's a standard C API for that. zsh may need
to pull an ICU library dependency to implement it. Also note
that normalisation changes with each version of Unicode (like
case insensitive comparison already changes with the locale and
version of the locale/system).
That sounds overkill just to work around the misdesigns of macOS.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author