From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 85d8eedb for ; Sun, 21 Jul 2019 21:41:48 +0000 (UTC) Received: (qmail 8812 invoked by alias); 21 Jul 2019 21:41:39 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24082 Received: (qmail 27379 invoked by uid 1010); 21 Jul 2019 21:41:39 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f50.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25517. spamassassin: 3.4.2. Clear:RC:0(209.85.221.50):SA:0(-2.0/5.0):. Processed in 2.519837 secs); 21 Jul 2019 21:41:39 -0000 X-Envelope-From: stephane.chazelas@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.50 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=2uwhpj7HN3AwjI9wmlE/FQKAVh2sGd7BPtLoWT5sVu8=; b=Kl5sRfnEKBLoYo/VR6Q90Sq3tmqACMnJ6+VhBnJfJ2Y/Dw/kHNkc//V1tkPlhltoxO m7R2JZsjht86BRXxIyfz86sObxwZ9lkWQpdDmbbF9Ht8ouF1j3DEEQab7PiP/uKRzkfD mfW6zd5YF7xaGhdyH1/yhxA+hhsI4Muu1TQcklel++yqyIuP0WzT8auh9vUZGWj+HmHo aK4HvT5BvLpjm56Q+Ni7GAHWilunwwTZHT304qt5zV7BKinbujy1A4Iev5EAe6nu8xb8 vDfvCi07q66CDPsHnJG81fENaxexOz3bI9i567PdXY6nWXfDqojlRw+6OgYMCHF3MAmb JIag== X-Gm-Message-State: APjAAAXHFeL9uye7s6hxZ7lDewBufenHzIhDISylVFnfGlbfXtzIdHWZ o6lA3/O3lshLYsKk2Br6O4OGHVWQg9g= X-Google-Smtp-Source: APXvYqy4M4F9pSZZnUeBQ8S7TIhzAiFapGAQnzl+bTXQuEVOYh8cnKj9YFYyy1DcM4L3uate5zD55g== X-Received: by 2002:adf:ed0e:: with SMTP id a14mr70450679wro.259.1563745261853; Sun, 21 Jul 2019 14:41:01 -0700 (PDT) Date: Sun, 21 Jul 2019 22:40:59 +0100 From: Stephane Chazelas To: zsh-users@zsh.org Subject: Re: glob qualifier on intermediate directory / no symbolic links Message-ID: <20190721214059.pyvxg7zjeeozuf4r@chaz.gmail.com> Mail-Followup-To: zsh-users@zsh.org References: <20190710133731.GA13596@cventin.lip.ens-lyon.fr> <20190712082023.GA3983__17556.0249060922$1562919714$gmane$org@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190712082023.GA3983__17556.0249060922$1562919714$gmane$org@zira.vinc17.org> User-Agent: NeoMutt/20171215 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