Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Most Recent File



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