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

Re: spaces in filenames should be a crime.



2017-03-28 11:08:43 +0200, Martin Richter:
[...]
> $ print -- **/*(.om[1])
> 
> which will just do what you want.
[...]

You need -r for print:

print -r -- **/*(.om[1])

or use printf instead:

printf '%s\n' **/*(.om[1])

To be equivalent to the "find" approach, you'd also want the "D"
glob qualifier to not exclude hidden files, and to traverse
hidden directories:

print -r -- **/*(D.om[1])

-- 
Stephane



Messages sorted by: Reverse Date, Date, Thread, Author