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

Re: ${(q)...} for newline



On Sun, May 23, 2010 at 12:58 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> Param-style simple (i.e. backslash) quoting of a newline appends a real
> newline in double quotes.  It seems to me it would occasion far fewer
> surprises if this never output a literal newline, so this uses $'\n'.

I let this stew for a couple of days before commenting ... and after
some initial vague unease about this I guess I'm over it, since $'...'
is already used for unprintable or invalid characters.

However, I suggest that (q-) continue to use the literal quoted newline.



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