Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: spaces in filenames should be a crime.
On Sun, 26 Mar 2017 13:22:24 -0700
Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> mostrecent ()
> {
> ls -l ${(f)$( find . -type f -printf "%T@ %p\n" | sort -n | cut
> -d' ' -f 2- | tail -n 1 )}
> }
As Vadim says:
mostrecent ()
{
ls -l ${(f)"$( find . -type f -printf "%T@ %p\n" | sort -n | cut -d' ' -f 2- | tail -n 1 )"}
}
That's how (f) was designed to work.
But "find -print0 <whatever> | xargs -0 <whatever>' might also be your
friend, and you might not actually need find. In fact, I'm sure there
are ways of tidying this up I haven't got time for just now.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author