From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11585 invoked by alias); 8 Nov 2009 18:08:39 -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: 27368 Received: (qmail 13642 invoked from network); 8 Nov 2009 18:08:28 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <091108090815.ZM24393@torch.brasslantern.com> Date: Sun, 08 Nov 2009 09:08:15 -0800 In-reply-to: <20091108114904.GA7063@finlandia.home.infodrom.org> Comments: In reply to Maddi Kopfermann "FEATURES description wrong line" (Nov 8, 12:49pm) References: <20091108114904.GA7063@finlandia.home.infodrom.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh-Workers Subject: Re: FEATURES description wrong line MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 8, 12:49pm, Maddi Kopfermann wrote: } } I read in "FEATURES" and found some wrong line: } } "ls *(om[2]) matches the two most recently modified files" } } I am very thankful that this FEATURE isn't there ;) } Would confuse me very much :) Good catch, that matches the second-most-recently modified file. To get the two most recently modified, you need *(om[1,2]) ... but that's not exemplary enough if you ask me, because it makes it appear you have to list all the indices. Index: FEATURES =================================================================== RCS file: /extra/cvsroot/zsh/zsh-4.0/FEATURES,v retrieving revision 1.2 diff -c -r1.2 FEATURES --- FEATURES 24 Sep 2005 17:48:33 -0000 1.2 +++ FEATURES 8 Nov 2009 17:07:22 -0000 @@ -28,7 +28,7 @@ qualifiers in parentheses after globbing expression: ls *(*@) matches executable files/directories or symlinks ls *(L0f.go-w.) matches all zero-length files not group or world writable - ls *(om[2]) matches the two most recently modified files + ls *(om[1,3]) matches the three most recently modified files null command shorthands: "< file" is same as "more file" is same as "cat >file"