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 24082
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: glob qualifier on intermediate directory / no symbolic links
- Date: Sun, 21 Jul 2019 22:40:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2uwhpj7HN3AwjI9wmlE/FQKAVh2sGd7BPtLoWT5sVu8=; b=TWxw1mCGeH9XJL56k4G165Hzgpef3yxniPls19lNPsBy//4MPI3zDS0AvOjLng22jS y4t/SYTArV1ZGXlSzce/1ZzoVC8Z6GkdEkOs7h9/lD56aF62kIpaQrIoZ3AjAXxxhAO9 LZIRiKk79qw8ybyYwvZxHt9kMx5d9uHkZVBjgMzRxyPcP41egs01FuU0/+soRc1T/bLu +DS0uEnV+deUwMSYY7zSgj0Is1CM+zcPs0fiAfmcXMi1IHazYxEBNPLIv7Xit5uS5Maa swNHbd9RkPROlbV/ZP404H0hLPfk9tLgqFuWGXTyvtNdqDN5T1k6GbEYdWbRlQH42OGN sw9w==
- In-reply-to: <20190712082023.GA3983__17556.0249060922$1562919714$gmane$org@zira.vinc17.org>
- 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>
- Mail-followup-to: zsh-users@xxxxxxx
- 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> <20190712082023.GA3983__17556.0249060922$1562919714$gmane$org@zira.vinc17.org>
2019-07-12 10:20:23 +0200, Vincent Lefevre:
> On 2019-07-10 15:58:05 +0200, Pier Paolo Grassi 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
>
> This isn't even correct as there may be directories without the file
> inside them.
>
> Moreover, I was looking for something short to type, and possibly
> compatible with completion widgets, such as expand-or-complete.
> Otherwise, there would be a solution to use a function that does
> what I want, of the form $(dirfile 'dirpattern' 'filepattern')
> but this is not satisfactory.
[...]
I raised a similar query on the zsh-workers mailing list at
https://www.zsh.org/mla/workers/2019/msg00501.html
There was no feedback though.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author