From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17089 invoked by alias); 25 Apr 2015 05:11:28 -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: 34960 Received: (qmail 25723 invoked from network); 25 Apr 2015 05:11:15 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=uARftXClXJ8Hq8QS5MfcL0Wnr8CK0/7vNgf6Awwy9rc=; b=QFf/FR4cWnVE59l6Tnn+u5QaYsKec4eSh3/b6pGcKSm/Mw/P5chTlEc1yKgDBqriD1 XPmOeFtWpm3SUrb5QcRGB2Ort+X3qqUWDE9wMwtztk7F/SqPtHMovOsNC9+YXj6pS3KO v0EeiBMTOXvKlRUTPxK1s4IvK6PRHaBIGg8VqR+9w/61uBAC9IL8tG5heWolQXz21XCK /kElB5aW57Ha+qenjYL1Y7BhELboDzo/0+bW11UvJlqTbC/D7XwdcR/7Vvcy50MaYkYi 3eneuhXr/tmXjy+lfdtdYvNiiBvkrAfG+wDTe6nn78D6H/qTEIVPMcgMzLasxYLvCivy RJLw== MIME-Version: 1.0 X-Received: by 10.107.16.32 with SMTP id y32mr2085122ioi.53.1429938670704; Fri, 24 Apr 2015 22:11:10 -0700 (PDT) In-Reply-To: <20150425001719.GA12262@xvii.vinc17.org> References: <20150425001719.GA12262@xvii.vinc17.org> Date: Sat, 25 Apr 2015 07:11:10 +0200 Message-ID: Subject: Re: Filename generation: sorting by inode number From: Mikael Magnusson To: zsh workers Content-Type: text/plain; charset=UTF-8 On Sat, Apr 25, 2015 at 2:17 AM, Vincent Lefevre wrote: > With the "o" glob qualifier for filename generation, it is not possible > to sort by inode number. Such a feature could be very useful to speed up > file reading on an ext3 file system when the files are not in the cache. > > See: > https://lists.debian.org/debian-user/2015/04/msg01310.html > http://comments.gmane.org/gmane.mail.mutt.devel/4089 Everything is possible with the "o" glob qualifier by virtue of the "e" specifier; zmodload -aF zsh/stat -b:stat b:zstat ls -Udi *(noe:'zstat -L -A REPLY +inode $REPLY:') You can also stick that in a helper function ins and use *(no+ins). -- Mikael Magnusson