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

Re: Most Recent File



Yes, but the spaces aren't quoted, so the output can't be used in another command.

On Sat, Oct 23, 2021 at 12:48 PM david rayner <david@xxxxxxxxxxxxxx> wrote:


On 23/10/2021 17:15, Vin Shelton wrote:
  print -l -- *(-om[1,1])


works for me?


touch sue\ jane.txt

print -l -- *(-om[1,1])

sue jane.txt


also

ls -l *(.om[1])

-rw-rw-r-- 1 david david 0 Oct 23 17:45 'sue jane.txt'

zzapper



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