From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3228 invoked from network); 19 Apr 2005 23:02:58 -0000 Received: from ns2.primenet.com.au (HELO primenet.com.au) (?6++Jr65u0ePZkXO3jsnregS6DcqZ0VAm?@203.24.36.3) by ns1.primenet.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 19 Apr 2005 23:02:58 -0000 Received: (qmail 21260 invoked from network); 19 Apr 2005 16:00:28 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by proxy.melb.primenet.com.au with SMTP; 19 Apr 2005 16:00:28 -0000 Received: (qmail 22626 invoked from network); 19 Apr 2005 15:59:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Apr 2005 15:59:22 -0000 Received: (qmail 4828 invoked by alias); 19 Apr 2005 15:59:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8704 Received: (qmail 4813 invoked from network); 19 Apr 2005 15:59:14 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Apr 2005 15:59:14 -0000 Received: (qmail 21485 invoked from network); 19 Apr 2005 15:59:14 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 19 Apr 2005 15:59:06 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Tue, 19 Apr 2005 16:57:24 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 19 Apr 2005 17:02:19 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j3JFx4fm002123 for ; Tue, 19 Apr 2005 16:59:04 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j3JFx4oJ002120 for ; Tue, 19 Apr 2005 16:59:04 +0100 Message-Id: <200504191559.j3JFx4oJ002120@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: Zsh Users Subject: Re: globbing with interposition In-reply-to: <1050419152554.ZM31922@candle.brasslantern.com> References: <20050419072115.GA15936@fruitcom.com> <1050419152554.ZM31922@candle.brasslantern.com> Date: Tue, 19 Apr 2005 16:59:04 +0100 From: Peter Stephenson X-OriginalArrivalTime: 19 Apr 2005 16:02:19.0440 (UTC) FILETIME=[2A22DB00:01C544F9] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Bart Schaefer wrote: > For bizarre reasons I don't immediately understand, the following does > what you want, but probably isn't guaranteed to keep working in future > releases: > > mutt eric fotos*(e:'reply=($REPLY -a)':od) -s "all images attached" od doesn't sort at all, which is sort of implied by: if d, files in subdirectories appear before those in the current directory at each level of the search --- this is best combined with other criteria, for example `odon' to sort on names for files within the same directory The effect of "not sorting at all" is likely to be that the files are read in inode order, except it's not documented how they are likely to be inserted into the final list. It does seem that they're reversed on Linux: % touch a b c d % print *(od) d c b a % rm b % touch e % print *(od) d c e a The reversal is not an effect of the (od) itself, which simply returns a the difference of the number of slashes in the file, i.e. zero. It looks like it's a side effect of qsort when two files compare equal. The qsort documentation says: The relative order in the output of two items that compare as equal is unpredictable. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************