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

Re: Most Recent File



Sorry didn't read question fully!!

On 23/10/2021 17:15, Vin Shelton wrote:
I want to list the most recent file in the current directory.
    print -l -- *(-om[1,1])
works for ordinary filenames, but does not quote the output appropriately if the filename contains spaces.  How do I quote the _expression_ to accommodate filenames which contain spaces?

TIA,
  Vin
--
Never for money, always for love


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