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 e0b010b2 for ; Wed, 21 Aug 2019 20:55:17 +0000 (UTC) Received: (qmail 19399 invoked by alias); 21 Aug 2019 20:55:09 -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: 24174 Received: (qmail 7036 invoked by uid 1010); 21 Aug 2019 20:55:08 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25545. spamassassin: 3.4.2. Clear:RC:0(209.85.166.44):SA:0(-2.0/5.0):. Processed in 1.450077 secs); 21 Aug 2019 20:55:08 -0000 X-Envelope-From: mikachu@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.166.44 as permitted sender) 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:content-transfer-encoding; bh=V0UA9ZhVjpsBf6CFLi1ceEEToikT/wkx6f3V05oC3io=; b=SJPam8vV6Hy5Ox2eDivMmP4klznbf+PZ33J08R6P2zDXplKtt92YB+2xgJMn+hcjg0 gGrgKr3fI/lsrIq4YctKDe9JiDeaE5W5bpc79t5qqe19NBr21lJAJRbeXaqpTCmlwfHT 0IOM8X6tf4pd5DylUJEjFoyW+YZ3uZ5YLWgw4XPLM5l/OZNkengdddYjaVKToZt7A2ls F/w4k1AeZdR/83wfh6GFrFG0/0B059Fj3NyCgsDuRMVt2YT/PbrifzQ2L7U6XayfrKP2 TjKRPIphRYDZDzrG8HTbNyHqmwF3DRWLRGOU3J6SVf+/6omaQsZANlIxg+LtOJ9fTzQ2 WNvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=V0UA9ZhVjpsBf6CFLi1ceEEToikT/wkx6f3V05oC3io=; b=oRAiJt50M9QVK3LWkFHZHjQEIq6sqqcZel09E0tNCb8z0nUKlsRiCd27MO70lJVOrg B98/avnqDoYIfGWNXM6LVv1vY1n4iEIV0BfLUZaV2EMx71adgg7z5vSpwVG+0qGdtQ0U ubNO4+S/1F5As6HdZM0maaUs983mGbhXfCD1twHuEKabHSeb5x+HLJbYqAX3MCxcNp8D qfrkpwo5s3qHUT8O60RoLnucEbcIK9LQVwUvSm2dFzUSEX4zrMsBPvRrCft+m7uBnYcA v6SiB+nHqbZ0lrzTLGStpfgbN9+gKowRj5liZIZCblN2F662uukc+LtWdxw7YGGE9Wqn OV3w== X-Gm-Message-State: APjAAAWq20Jc3txI4iKBcjSc5dyU5R9CSbHt+n1GNugcq72OqEhcfdih 9BjKWe+cJLGshxGWioCpiwabjHO98pZpi9FWZIk= X-Google-Smtp-Source: APXvYqxyo+4d1++tP/Qj10OD1GNS8uKhY8zQSuO2xB3wT2rgXN9o9AhEXvnB1pltPrwr3ezBr91rNY0iJiYrz2NI2vM= X-Received: by 2002:a5d:9b02:: with SMTP id y2mr10786249ion.146.1566420873416; Wed, 21 Aug 2019 13:54:33 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <721145FA-3F01-473F-8DEE-8047E5065A47@icloud.com> References: <918ED85F-9DE5-4365-B962-45AD4AADDF46@icloud.com> <2630172a-ed53-48e8-b684-48b8bb59c5f6@www.fastmail.com> <721145FA-3F01-473F-8DEE-8047E5065A47@icloud.com> From: Mikael Magnusson Date: Wed, 21 Aug 2019 22:54:32 +0200 Message-ID: Subject: Re: Get the result of the last glob To: Aryn Starr Cc: Daniel Shahaf , zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 8/21/19, Aryn Starr wrote: > Thanks. I needed this to be non-interactive, and I indeed created a funct= ion > for it, I was just wondering if it was possible to get the glob in a magi= c > variable or sth, which it seems it is not. [don't top post] Yes, it's not possible to get anything like $lastglob, because globs are expanded after forking=C2=B9 to run the external command, so no results are available to the interactive shell for subsequent use. =C2=B9 if you're not running an external command it would theoretically be possible, but it would be an inconsistent interface. --=20 Mikael Magnusson