Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Get the result of the last glob
- X-seq: zsh-users 24176
- From: Stephane Chazelas <stephane.chazelas@xxxxxxxxx>
- To: Aryn Starr <whereislelouch@xxxxxxxxxx>
- Subject: Re: Get the result of the last glob
- Date: Thu, 22 Aug 2019 08:32:15 +0100
- Cc: Mikael Magnusson <mikachu@xxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=xU2OBFDBYVzPSHF9gmo7FHIMSJLskuzOUmQzr4qk4ZQ=; b=YtwX5FfDrQyLwPHm1eGIEBwX62Zzs6cSU5poJ9tfIat/noriZQy9XmyvgojgEC6866 2mbsOMFPAFPxevJ/zOiVonV0VOVH1kCI4imbM0IolhX9HPGTk8SFufbo/Ym0mYZXE/4n zFroSGQdfdtf1KfujMNjETnseXg1CPgjHctO13YxUGoHW0cbbCEy3Jjl1yaFWIs+lbUp JZ/ZoSi1j8ck1eW3EvLLrROMokUKRDkPSn0KA1XJUwN92umTDtu8/M+RhUyf2PSkZvjm XUZljz73OAryc0B5CvzrNv8BioKom9zcFSDEDZ+SrwdHlwlrCRc6gSjAorK+8U6UUzuj ClwA==
- In-reply-to: <6B392E5A-528B-4E73-8DF4-A10D6775D5FB__35805.0242810108$1566452299$gmane$org@icloud.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>
- Mail-followup-to: Aryn Starr <whereislelouch@xxxxxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <918ED85F-9DE5-4365-B962-45AD4AADDF46@icloud.com> <2630172a-ed53-48e8-b684-48b8bb59c5f6@www.fastmail.com> <721145FA-3F01-473F-8DEE-8047E5065A47@icloud.com> <CAHYJk3TO-tv0zMXd0Tmka0eX7W45zzCiLOVDoFybjf+hbUQq0A@mail.gmail.com> <6B392E5A-528B-4E73-8DF4-A10D6775D5FB__35805.0242810108$1566452299$gmane$org@icloud.com>
2019-08-22 10:06:51 +0430, Aryn Starr:
> What’s top posting?
See https://en.wikipedia.org/wiki/Posting_style
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).
>
> Can’t $lastglob be available in the same command? It would be in the same fork, I imagine …
> `command * -d $lastglob`
[...]
$ lastglob=(); print -r -- *(e['lastglob+=($REPLY)']) /(e['reply=($^lastglob.epub)'])
file1 file2 file1.epub file2.epub
See also:
$ print -r -- *(e['reply=($REPLY $REPLY.epub)'])
file1 file1.epub file2 file2.epub
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author