Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Most Recent File
- X-seq: zsh-users 27282
- From: Dominik Vogt <dominik.vogt@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Most Recent File
- Date: Sun, 24 Oct 2021 02:45:21 +0100
- Archived-at: <https://zsh.org/users/27282>
- In-reply-to: <CF77Q0TPEKI8.1NCL83P9Z0HV3@kbvv>
- List-id: <zsh-users.zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- References: <CAP+y1xC3Dx74sBaCf8mgmEcOMh+hUH6zAdt236k=JTjw4-cBqQ@mail.gmail.com> <CF77Q0TPEKI8.1NCL83P9Z0HV3@kbvv>
- Reply-to: dominik.vogt@xxxxxx
On Sat, Oct 23, 2021 at 07:32:09PM -0500, Paul wrote:
> recent(){
> # Use $reply if no parameter name given
> typeset -ga "${2:=reply}"
> set -A "$2" *(om[1,$1])
> }
> recent 3 files; ls -ld $files
^^^^^^
ls -ld -- "${files[@]}"
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
Messages sorted by:
Reverse Date,
Date,
Thread,
Author