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

Re: Most Recent File



On Sat, Oct 23, 2021 at 10:32 AM Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
>
> >   $ echo "${(q)f}"
> >   c$'
> >   'd
> >
> > Why does the value contain a '$'?
>
> The $'...' form of quoting is a special one

Also:

% printf "%s\n" "${(q)f}"
c$'\n'c

'Twas echo changed the \n to an actual newline.




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