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 6aad5cb5 for ; Thu, 22 Aug 2019 07:36:52 +0000 (UTC) Received: (qmail 29175 invoked by alias); 22 Aug 2019 07:36:44 -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: 24177 Received: (qmail 10721 invoked by uid 1010); 22 Aug 2019 07:36:44 -0000 X-Qmail-Scanner-Diagnostics: from st43p00im-zteg10073401.me.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(17.58.63.181):SA:0(-2.7/5.0):. Processed in 0.785253 secs); 22 Aug 2019 07:36:44 -0000 X-Envelope-From: whereislelouch@icloud.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at icloud.com designates 17.58.63.181 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1566459369; bh=dBYALR6CYHQ1Ik/sn+NoHJlY+9ClSSoBEHCedwU6tnU=; h=Content-Type:Subject:From:Date:Message-Id:To; b=a0BGvJWJ/8Wt09mhuI4JeWaU30H0iU6MKDAa6tdY4R/UAGyywPrMV/JMGM7YPqlhJ KxPNoIuAPlb9Wd/iObzeE9zmjILQDCQsTSgwARv5VPX1jYs4jslSeBrzEGGS5yh5Yp JpWAjLMYYjz4/AJ0JC676IhjR+M3meZtCJ7tyveAWa8hcOjz+zUzCZUvPujo0x6rbD TQR1tmeHCbIFHHe/q2MgkkPmvwZt7daJ5GD9AU98CfGWIsxB8PkJaWVqwE/VfpwnMT 2mPOwrfSsS3aavE+aPFBssP35rVt6DWqleJkp2VY4hbnvlninLWjZeev/G6WpoW06S Y8lndSE5l563g== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Get the result of the last glob From: Aryn Starr In-Reply-To: <20190822073215.csifd4pxsaqdchqu@chaz.gmail.com> Date: Thu, 22 Aug 2019 12:05:58 +0430 Cc: zsh-users@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <7F5BC54C-8EAA-49C2-9CD3-DD777F07764C@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> <6B392E5A-528B-4E73-8DF4-A10D6775D5FB__35805.0242810108$1566452299$gmane$org@icloud.com> <20190822073215.csifd4pxsaqdchqu@chaz.gmail.com> To: Stephane Chazelas X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-22_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1812120000 definitions=main-1908220083 Thanks. zsh continues to have all kinds of weird features:D > On Aug 22, 2019, at 12:02 PM, Stephane Chazelas = wrote: >=20 > 2019-08-22 10:06:51 +0430, Aryn Starr: >> What=E2=80=99s top posting? >=20 > See https://en.wikipedia.org/wiki/Posting_style >=20 > Your lines are also too long (72 recommended maximum, so it > takes a few quoting layers to get to 80, the standard terminal > width), but that's probably down to you using an Apple mail > client. And I suppose those recommendations (including > top-posting) make less sense now that people use mobile phones > to read their emails (maybe not their emails about zsh though). >=20 >>=20 >> Can=E2=80=99t $lastglob be available in the same command? It would be = in the same fork, I imagine =E2=80=A6 >> `command * -d $lastglob` > [...] >=20 > $ lastglob=3D(); print -r -- *(e['lastglob+=3D($REPLY)']) = /(e['reply=3D($^lastglob.epub)']) > file1 file2 file1.epub file2.epub >=20 > See also: >=20 > $ print -r -- *(e['reply=3D($REPLY $REPLY.epub)']) > file1 file1.epub file2 file2.epub >=20 > --=20 > Stephane