Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Sorting of <-> (was Re: Rewrite of zsh-newuser-install)
- X-seq: zsh-workers 48404
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Cc: Marlon Richert <marlon.richert@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Sorting of <-> (was Re: Rewrite of zsh-newuser-install)
- Date: Mon, 5 Apr 2021 11:52:57 -0700
- Archived-at: <https://zsh.org/workers/48404>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-04/CAH%2Bw%3D7YiHrYbkNBS43CNHQC-yOEsjV8%3D6bt%3D8c2KgoM_V4oP1g%40mail.gmail.com>
- In-reply-to: <20210405181637.GA22397@tarpaulin.shahaf.local2>
- List-id: <zsh-workers.zsh.org>
- References: <B865F477-D72B-426F-9691-268C2E65EC85@dana.is> <EAEB39F8-6DEF-4BC0-A7E4-A59B16DBDF2F@gmail.com> <D2248BF1-5045-4F68-89F0-F92C903EF73D@dana.is> <20210225080519.GA22300@tarpaulin.shahaf.local2> <CAHLkEDtR6LCZy_2Ks-KATn9T3xyMmNh=ifxiHF4+KhO5uT-Cxw@mail.gmail.com> <20210227132121.GA9308@tarpaulin.shahaf.local2> <CAHLkEDt+=qEL-jMqYxKBXBZuPEi_=dm-Ms-6oZY=b-RyjXJ2rw@mail.gmail.com> <20210405181637.GA22397@tarpaulin.shahaf.local2>
On Mon, Apr 5, 2021 at 11:17 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> P.S. I wonder if «: <->» should always behave as though
> NUMERIC_GLOB_SORT is set.
I think it would be confusing (let alone difficult to implement) if
NUMERIC_GLOB_SORT applied only to a substring of the matches. That
is, if I have say « foo<->bar* » and there is a trailing numeric
component matched by the « * », what happens? What about say «
[1-9]<->[2468] » ? Patterns with « (...|...) » where « <-> » appears
only in one branch?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author