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

Re: [PATCH] Re: (Y) modifier: up to N matches?



On Jun 4,  8:01am, Mikael Magnusson wrote:
}
} We already have [1,42] for the first 42 matches after sorting, just
} make a reference to that I guess? And as for taking arguments, all
} other glob qualifiers that take variable length arguments do it in the
} form of u:args: where the : can be any character, so this should be
} consistent with that, I think.

Actually qualifiers that take only numeric arguments don't use the :args:
format, see for example u123 for files owned by user 123, or L1024 for
files 1k in size.  I find I've forgotten how one specifies a device for
the (dDEV) qualifier, and the manual doesn't help, but that doesn't use
delimiters either.  (Ah, it's device number.)

So I think Y42 is fine as it is.



Messages sorted by: Reverse Date, Date, Thread, Author