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

Re: Most Recent File



On Sat, Oct 23, 2021 at 05:58:28PM +0100, Peter Stephenson wrote:
> f=(*(-om[1,1]))
> print -l -- ${(q)f}

Hmmmm

  # filename with newline:
  $ touch "c
  d"
  $ f=(c*d)
  $ echo "${(q)f}"
  c$'
  'd

Why does the value contain a '$'?

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt




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