Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Filtering an array of file names
- X-seq: zsh-users 21989
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Filtering an array of file names
- Date: Thu, 29 Sep 2016 07:55:33 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=wdjnwnLP9l7+/cIXZnOVf7xzMzI=; b=wnChJz x9zz3B32bH9PPddA9gmQ8XJCEmOoTBeF+Tu69aRegAYagonA66a0tYFZCJ7JTUxt Epx2vinodfjr3JMJ/WFK2XNfVpQv9AIG48n72VKZznnN9KeoQAdIfYUImDkbPTMr u2XLpW8nsCp8bHOpvjfJrg6P/RNjQ1fI5WPnU=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=wdjnwnLP9l7+/cIXZnOVf7xzMzI=; b=ty1Hs mZh90YG+bn2wi1AD2WXmY70dl0uI+clPiI36ZDyrIjajKMtAEJkkwdInceooplDZ Cd9ENxl0DErbtygUsVymQQBUcEDUwKVW/+dJRqV/GuIa27+Eb23JH2i2NrEG53yO A85Schqer26dKAtvtAD0oVYOEv/yS4ZaXhk9cI=
- In-reply-to: <160929001853.ZM27784__20418.9757038423$1475133607$gmane$org@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CABZhJg9vf0OZyXbSOcX_7sA7aN=cHtDQq08sLKy_0Vs6xkUR1g@mail.gmail.com> <160929001853.ZM27784__20418.9757038423$1475133607$gmane$org@torch.brasslantern.com>
Bart Schaefer wrote on Thu, Sep 29, 2016 at 00:18:53 -0700:
> directories=( ${^allfiles}(/) )
Use the (N) qualifier if it's possible to have zero matches:
directories=( ${^allfiles}(/N) )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author