Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Sorting of <-> (was Re: Rewrite of zsh-newuser-install)



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