From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22552 invoked by alias); 5 Jun 2014 04:45:24 -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: 32710 Received: (qmail 25196 invoked from network); 5 Jun 2014 04:45:11 -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: <140604214509.ZM31035@torch.brasslantern.com> Date: Wed, 04 Jun 2014 21:45:09 -0700 In-reply-to: Comments: In reply to Bart Schaefer "Re: [PATCH] Re: (Y) modifier: up to N matches?" (Jun 4, 4:16pm) References: <20140602182346.GB1858@tarsus.local2> <140602204603.ZM26905@torch.brasslantern.com> <20140604020804.GA2032@tarsus.local2> <140603234229.ZM29030@torch.brasslantern.com> <20140604230835.GD1970@tarsus.local2> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [PATCH] Re: (Y) modifier: up to N matches? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jun 4, 4:16pm, Bart Schaefer wrote: } } I verified by comparing the output of **/*(odoN) vs **/*(oN) that they } may in fact differ. I didn't dig into exactly how or why. It appears that **/*(od) returns files in subdirectories first regardless of any other sort flags, including (oN) which applies only to the files within each subdirectory and to subdirectories of the same parent with relation to each other. Similarly (Od) displays local names first, though they may otherwise be unordered (or at leat not predictably ordered). Even without **/ as a prefix, (odoN) is a different order than (oN). This must be because an unstable qsort is applied even though it theoretically compares all names as equivalent. } More later when I have time to peruse the patches. Both patches look sane and simple enough. My only quibble with the second (1<