Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: glob qualifier on intermediate directory / no symbolic links
- X-seq: zsh-users 24041
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Subject: Re: glob qualifier on intermediate directory / no symbolic links
- Date: Wed, 10 Jul 2019 18:26:42 +0200
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=uVPVALrTT9n6I9oE9K1BR8Ty1veJNU2wFYio2FIJaJo=; b=SjgSWvJ422OIovbda0KroOGnMGPXcLLQjXrTbipwz3ks8O1/j+9Z9fiOiA7nAVzQhx 5ghR1QjaHl0DKgj6CNHdIQFk8iwwp4JQhY/RDTZdiQdBnF4zjP3qa5pp5PUKNyeBiCbb 7uaHK3SBrtrXBpZHVCC6mlF4ccwpwS4NfHgrQ9NAVX8vqg93EBlHFPymtPwqioFF3OWZ ZnItUnD/ybPSiLLdNkUUbohEWg9GsWDmpcNANzFwgHCdu9y9MbjaJjyajsIdEevt/k86 wjrsneTjTxMCo2Ksq2sflhDzPL+umdHUpabTHHgOBK/u6eLQPO47KUg/WY/lJ+ixVwqw PWeg==
- In-reply-to: <CAP+y1xBPc_jLNLrGiXvYXSzjwWdvMj_gTDkP=d6wwG+rA9NhuA@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20190710133731.GA13596@cventin.lip.ens-lyon.fr> <CAP+y1xBPc_jLNLrGiXvYXSzjwWdvMj_gTDkP=d6wwG+rA9NhuA@mail.gmail.com>
On 7/10/19, Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
> you can do something like this:
>
> setopt NULL_GLOB
> typeset -a arr=(*(^@))
> ls ${^arr}/file
>
> but I'm curious if there is any solution that doesn't require using an
> intermediate array
There isn't.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author