From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4584 invoked by alias); 3 Jun 2014 03:46:42 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32679 Received: (qmail 20257 invoked from network); 3 Jun 2014 03:46:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140602204603.ZM26905@torch.brasslantern.com> Date: Mon, 02 Jun 2014 20:46:03 -0700 In-reply-to: <20140602182346.GB1858@tarsus.local2> Comments: In reply to Daniel Shahaf "(Y) modifier: up to N matches?" (Jun 2, 6:23pm) References: <20140602182346.GB1858@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: (Y) modifier: up to N matches? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.