Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (Y) modifier: up to N matches?
- X-seq: zsh-workers 32679
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: (Y) modifier: up to N matches?
- Date: Mon, 02 Jun 2014 20:46:03 -0700
- In-reply-to: <20140602182346.GB1858@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20140602182346.GB1858@tarsus.local2>
On Jun 2, 6:23pm, Daniel Shahaf wrote:
}
} Would it make sense to have (Y) take a numeric argument specifying the
} maximal number of files to match? e.g., *(NY5) would expand to between
} 0 and 5 filenames (but never more than 5).
My concern is that people are going to expect the (o)/(O) qualifiers to
take effect before (Y) does, and will be confused about the "skipped"
files when it takes effect after. If (Y) can't return more than one
result, there's nothing to sort.
However, I can't come up with any other objection.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author